src/share/classes/java/beans/EventSetDescriptor.java

Print this page

        

@@ -79,11 +79,11 @@
              Introspector.GET_PREFIX + getListenerClassName(listenerType) + "s");
 
         String eventName = NameGenerator.capitalize(eventSetName) + "Event";
         Method[] listenerMethods = getListenerMethods();
         if (listenerMethods.length > 0) {
-            Class[] args = getParameterTypes(getClass0(), listenerMethods[0]);
+            Class<?>[] args = getParameterTypes(getClass0(), listenerMethods[0]);
             // Check for EventSet compliance. Special case for vetoableChange. See 4529996
             if (!"vetoableChange".equals(eventSetName) && !args[0].getName().endsWith(eventName)) {
                 throw new IntrospectionException("Method \"" + listenerMethodName +
                                                  "\" should have argument \"" +
                                                  eventName + "\"");