Author: fmeschbe
Date: Mon Mar 4 08:09:29 2013
New Revision: 1452204
URL: http://svn.apache.org/r1452204
Log:
Add toString method and remove superfluous (IMO) comment references
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=1452204&r1=1452203&r2=1452204&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
Mon Mar 4 08:09:29 2013
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -62,17 +62,11 @@ public final class PrinterMode
return this.mode;
}
- /**
- * @see java.lang.Object#hashCode()
- */
public int hashCode()
{
return mode.hashCode();
}
- /**
- * @see java.lang.Object#equals(java.lang.Object)
- */
public boolean equals(Object obj)
{
if (this == obj)
@@ -90,4 +84,9 @@ public final class PrinterMode
final PrinterMode other = (PrinterMode) obj;
return mode.equals(other.mode);
}
+
+ public String toString()
+ {
+ return name();
+ }
}