bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r992412 - /incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/ClassHelper.java
Date Fri, 03 Sep 2010 18:45:26 GMT
Author: mbenson
Date: Fri Sep  3 18:45:26 2010
New Revision: 992412

URL: http://svn.apache.org/viewvc?rev=992412&view=rev
Log:
format; remove a warning

Modified:
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/ClassHelper.java

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/ClassHelper.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/ClassHelper.java?rev=992412&r1=992411&r2=992412&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/ClassHelper.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/ClassHelper.java
Fri Sep  3 18:45:26 2010
@@ -33,7 +33,7 @@ public class ClassHelper {
     private ClassHelper() {
         // No instances please
     }
-    
+
     /**
      * Fill the list with the full class/interface hierarchy of the given class.
      * List is ordered from the most to less specific.
@@ -44,18 +44,18 @@ public class ClassHelper {
      *            The current class, root of the hierarchy to traverse.
      */
     static public void fillFullClassHierarchyAsList(List<Class<?>> allClasses,
Class<?> clazz) {
-        if ( clazz == null || clazz == Object.class ) {
+        if (clazz == null || clazz == Object.class) {
             return;
         }
-        if ( allClasses.contains(clazz) ) {
+        if (allClasses.contains(clazz)) {
             return;
         }
         allClasses.add(clazz);
-        List<Class<?>> subClasses = new ArrayList(Arrays.asList(clazz.getInterfaces()));
+        List<Class<?>> subClasses = new ArrayList<Class<?>>(Arrays.asList(clazz.getInterfaces()));
         subClasses.add(0, clazz.getSuperclass());
-        for ( Class<?> subClass : subClasses ) {
+        for (Class<?> subClass : subClasses) {
             fillFullClassHierarchyAsList(allClasses, subClass);
-        }        
+        }
     }
-    
+
 }



Mime
View raw message