(no commit message)
[utils] / support / general / src / main / java / org / wamblee / reflection / ReflectionUtils.java
index 0da2d1f2ff31fb93e3518a031686b30aff34b239..b5cfb2174edde641ac868cd744cb5210e8d7c63e 100644 (file)
@@ -24,25 +24,20 @@ import java.util.List;
 import java.util.Map;
 
 /**
- * Some utilities for reflection. 
+ * Some utilities for reflection.
  * 
  * @author Erik Brakkee
  */
 public class ReflectionUtils {
-    
-    public static final List<Class> PRIMITIVE_WRAPPERS =
-        createPrimitiveWrappers();
-    
-    private static final List<Class> createPrimitiveWrappers() { 
-        Class[] vals =   {
-            Boolean.class, Byte.class, Character.class, Short.class, Integer.class, Long.class,
-            Float.class, Double.class };
+
+    public static final List<Class> PRIMITIVE_WRAPPERS = createPrimitiveWrappers();
+
+    private static final List<Class> createPrimitiveWrappers() {
+        Class[] vals = { Boolean.class, Byte.class, Character.class,
+            Short.class, Integer.class, Long.class, Float.class, Double.class };
         return Arrays.asList(vals);
     }
-    
-  
-    
-    
+
     /**
      * Wraps a type by the corresponding wrapper type if it is a primitive type.
      * 
@@ -155,15 +150,16 @@ public class ReflectionUtils {
             getAllFields(superClass, aFound, aExcludedClasses);
         }
     }
-    
+
     /**
      * Checks if a class is a primitive type or wrapper type.
+     * 
      * @param aClass
      * @return
      */
-    public static boolean isPrimitive(Class aClass) { 
-        if ( aClass.isPrimitive()) { 
-            return true; 
+    public static boolean isPrimitive(Class aClass) {
+        if (aClass.isPrimitive()) {
+            return true;
         }
         return PRIMITIVE_WRAPPERS.contains(aClass);
     }