geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r370955 - /geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfo.java
Date Sat, 21 Jan 2006 02:01:11 GMT
Author: djencks
Date: Fri Jan 20 18:01:10 2006
New Revision: 370955

URL: http://svn.apache.org/viewcvs?rev=370955&view=rev
Log:
Spec recommends using null as parameter for a static method

Modified:
    geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfo.java

Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfo.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfo.java?rev=370955&r1=370954&r2=370955&view=diff
==============================================================================
--- geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfo.java (original)
+++ geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfo.java Fri Jan
20 18:01:10 2006
@@ -62,7 +62,7 @@
             throw new InvalidConfigurationException("Class does not have a getGBeanInfo()
method: " + className);
         }
         try {
-            return (GBeanInfo) method.invoke(clazz, new Object[]{});
+            return (GBeanInfo) method.invoke(null, new Object[]{});
         } catch (Exception e) {
             throw new InvalidConfigurationException("Could not get GBeanInfo from class:
" + className, e);
         }



Mime
View raw message