Skip to content

Commit ad03459

Browse files
author
coursar
committed
fix(inheritance): fix formatting
1 parent a8999da commit ad03459

File tree

6 files changed

+2
-48
lines changed

6 files changed

+2
-48
lines changed

inheritance/products/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,4 @@
4444
</plugin>
4545
</plugins>
4646
</build>
47-
48-
4947
</project>

inheritance/products/src/main/java/ru/netology/domain/Product.java

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import java.util.Objects;
44

5-
public class Product extends Object {
5+
public class Product {
66
private int id;
77
private String name;
88
private int price;
@@ -64,19 +64,3 @@ public String toString() {
6464
'}';
6565
}
6666
}
67-
68-
69-
70-
71-
72-
73-
74-
75-
76-
77-
78-
79-
80-
81-
82-

inheritance/products/src/main/java/ru/netology/repository/ProductRepository.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ public Product findById(int id) {
2727
return null;
2828
}
2929

30-
31-
32-
33-
3430
public void removeById(int id) {
3531
int length = items.length - 1;
3632
Product[] tmp = new Product[length];

inheritance/products/src/test/java/ru/netology/domain/BookTest.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,4 @@ public void shouldUseOverridedMethod() {
3232
// Вопрос к аудитории: чей метод вызовется?
3333
product.toString();
3434
}
35-
3635
}
37-
38-
39-
40-
41-
42-
43-
44-
45-
46-
47-
48-
49-
50-
51-
52-
53-
54-
55-
56-
57-
58-

inheritance/products/src/test/java/ru/netology/domain/ProductTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ public void shouldUseEquals() {
1212
assertEquals(first, second);
1313
}
1414
}
15-

inheritance/products/src/test/java/ru/netology/repository/ProductRepositoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ public void shouldSaveOneItem() {
1818
Product[] actual = repository.findAll();
1919
assertArrayEquals(expected, actual);
2020
}
21-
}
21+
}

0 commit comments

Comments
 (0)