From be26200a6d2fbeff6df49aada0bcf7cad91fe64f Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sat, 26 Feb 2011 17:59:27 +0100 Subject: small cleanup in uitl package - StringBuffer -> StringBuilder - ReflectionUtil.getBaseName -> class.getSimpleName() - cleanup imports, generics and @Override for all touched classes --- src/java/com/jogamp/common/util/VersionNumber.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/java/com/jogamp/common/util/VersionNumber.java') diff --git a/src/java/com/jogamp/common/util/VersionNumber.java b/src/java/com/jogamp/common/util/VersionNumber.java index f0ba820..7e86e72 100644 --- a/src/java/com/jogamp/common/util/VersionNumber.java +++ b/src/java/com/jogamp/common/util/VersionNumber.java @@ -42,6 +42,7 @@ public class VersionNumber implements Comparable { protected VersionNumber() { } + @Override public final int hashCode() { // 31 * x == (x << 5) - x int hash = 31 + major; @@ -49,6 +50,7 @@ public class VersionNumber implements Comparable { return ((hash << 5) - hash) + sub; } + @Override public final boolean equals(Object o) { return 0 == compareTo(o); } @@ -88,6 +90,7 @@ public class VersionNumber implements Comparable { return sub; } + @Override public String toString() { return major + "." + minor + "." + sub ; } -- cgit v1.2.3