commit | 70211b91be517bb1d4d0c9a7157b7b7806ea2448 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Wed Mar 13 17:13:35 2013 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Wed Mar 13 17:13:35 2013 +0000 |
tree | 7e29dcfbbc0c6127439a46f05123b190b874351f | |
parent | ed4ca02bc79034d64e35459c057a4925c23eb3a6 [diff] |
FELIX-3970 Remove hashCode and equals methods which have no value for a type safe enum class git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1456051 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java b/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java index 26981c8..2231091 100644 --- a/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java +++ b/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java
@@ -62,29 +62,6 @@ return this.mode; } - public int hashCode() - { - return mode.hashCode(); - } - - public boolean equals(Object obj) - { - if (this == obj) - { - return true; - } - if (obj == null) - { - return false; - } - if (getClass() != obj.getClass()) - { - return false; - } - final PrinterMode other = (PrinterMode) obj; - return mode.equals(other.mode); - } - public String toString() { return name();