[seam-commits] Seam SVN: r8450 - trunk/src/main/org/jboss/seam/util.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sun Jul 13 10:32:53 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-07-13 10:32:53 -0400 (Sun, 13 Jul 2008)
New Revision: 8450

Modified:
   trunk/src/main/org/jboss/seam/util/Reflections.java
Log:
toString(Field) can be toString(Member)

Modified: trunk/src/main/org/jboss/seam/util/Reflections.java
===================================================================
--- trunk/src/main/org/jboss/seam/util/Reflections.java	2008-07-13 13:07:38 UTC (rev 8449)
+++ trunk/src/main/org/jboss/seam/util/Reflections.java	2008-07-13 14:32:53 UTC (rev 8450)
@@ -5,6 +5,7 @@
 import java.lang.annotation.Annotation;
 import java.lang.reflect.Field;
 import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Member;
 import java.lang.reflect.Method;
 import java.lang.reflect.ParameterizedType;
 import java.lang.reflect.Type;
@@ -147,11 +148,11 @@
             ')';
    }
    
-   public static String toString(Field field)
+   public static String toString(Member member)
    {
-      return Strings.unqualify( field.getDeclaringClass().getName() ) + 
+      return Strings.unqualify( member.getDeclaringClass().getName() ) + 
             '.' + 
-            field.getName();
+            member.getName();
    }
    
    public static Class classForName(String name) throws ClassNotFoundException




More information about the seam-commits mailing list