Skip to content

Commit

Permalink
remove redundant line and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Balako committed Aug 8, 2023
1 parent b0e298e commit 0373a84
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@
<version>8.1.0</version>
</dependency>
</dependencies>

</project>
18 changes: 0 additions & 18 deletions src/main/java/mate/academy/model/Book.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package mate.academy.model;

import java.math.BigDecimal;
import java.util.Objects;

public class Book {
private Long id;
Expand Down Expand Up @@ -32,23 +31,6 @@ public void setPrice(BigDecimal price) {
this.price = price;
}

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Book book = (Book) o;
return Objects.equals(id, book.id) && Objects.equals(title, book.title) && Objects.equals(price, book.price);
}

@Override
public int hashCode() {
return Objects.hash(id, title, price);
}

@Override
public String toString() {
return "Book{" +
Expand Down

0 comments on commit 0373a84

Please sign in to comment.