diff --git a/src/main/java/com/sun/tools/xjc/addon/krasa/Utils.java b/src/main/java/com/sun/tools/xjc/addon/krasa/Utils.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/sun/tools/xjc/addon/krasa/Utils.java
+++ b/src/main/java/com/sun/tools/xjc/addon/krasa/Utils.java
@@ -111,12 +111,6 @@ public class Utils {
 	}
 
 	protected static boolean isNumber(Class<?> aClass) {
-		while (aClass.getSuperclass() != Object.class) {
-			if (aClass.getSuperclass() == Number.class) {
-				return true;
-			}
-			aClass = aClass.getSuperclass();
-		}
-		return false;
+		return Number.class.isAssignableFrom(aClass);
 	}
 }
#<I> refactoring