felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1456051 - /felix/trunk/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java
Date Wed, 13 Mar 2013 17:13:35 GMT
Author: fmeschbe
Date: Wed Mar 13 17:13:35 2013
New Revision: 1456051

URL: http://svn.apache.org/r1456051
Log:
FELIX-3970 Remove hashCode and equals methods which have no value for a type safe enum class

Modified:
    felix/trunk/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java

Modified: felix/trunk/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java
URL: http://svn.apache.org/viewvc/felix/trunk/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java?rev=1456051&r1=1456050&r2=1456051&view=diff
==============================================================================
--- felix/trunk/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java (original)
+++ felix/trunk/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java Wed Mar
13 17:13:35 2013
@@ -62,29 +62,6 @@ public final class PrinterMode
         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();



Mime
View raw message