Skip to content

Commit 9fa1c2a

Browse files
committed
fixed problems with hexletcheck
1 parent 76bdc8d commit 9fa1c2a

File tree

9 files changed

+2
-5
lines changed

9 files changed

+2
-5
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
100 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
272 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

app/src/main/java/hexlet/code/Differ.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static String generate(String data1, String data2, String format) throws
1717
Map<String, Object> fileInfo1 = Parser.parseFromString(content1);
1818
Map<String, Object> fileInfo2 = Parser.parseFromString(content2);
1919

20-
List<Map<String, Object>> diff = DifferTwoParameters.calculateDiff(fileInfo1, fileInfo2);
20+
List<Map<String, Object>> diff = DifferCalculation.calculateDiff(fileInfo1, fileInfo2);
2121

2222
return Formatter.format(diff, format);
2323
}

app/src/main/java/hexlet/code/DifferTwoParameters.java renamed to app/src/main/java/hexlet/code/DifferCalculation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import java.util.TreeSet;
1010

1111

12-
public class DifferTwoParameters {
12+
public class DifferCalculation {
1313

1414
public static List<Map<String, Object>> calculateDiff(Map<String, Object> fileInfo1,
1515
Map<String, Object> fileInfo2) {

app/src/test/java/hexlet/code/DifferTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import java.nio.file.Files;
77
import java.nio.file.Paths;
88

9-
109
import static org.junit.jupiter.api.Assertions.assertEquals;
1110

1211
class DifferTest {
@@ -20,7 +19,6 @@ private static String getFixturePath(String fileName) {
2019
return Paths.get("src/test/resources/fixtures/" + fileName).toString();
2120
}
2221

23-
2422
@Test
2523
void testGenerateJsonStylish() throws IOException {
2624
String expected = readExpected("expectedStylish.txt");
@@ -82,7 +80,6 @@ void testGenerateJsonDefault() throws IOException {
8280
System.out.println("7 ВСЕ РАБОТАЕТ");
8381
}
8482

85-
8683
@Test
8784
void testGenerateYamlDefault() throws IOException {
8885
String expected = readExpected("expectedStylish.txt");

0 commit comments

Comments
 (0)