[multiple changes]
authorMichael Koch <mkoch@gcc.gnu.org>
Wed, 20 Apr 2005 05:53:53 +0000 (05:53 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 20 Apr 2005 05:53:53 +0000 (05:53 +0000)
2005-04-20  Michael Koch  <konqueror@gmx.de>

* gnu/java/beans/IntrospectionIncubator.java:
Fixed HTML tags in javadocs.

2005-04-20  Jeroen Frijters  <jeroen@frijters.net>

* gnu/java/beans/IntrospectionIncubator.java
(addToPropertyHash, addToListenerHash): Don't confuse get(),
set(), is(), add() and remove() with properties or events.

From-SVN: r98441

libjava/ChangeLog
libjava/gnu/java/beans/IntrospectionIncubator.java

index 8e75e5db02782f2612c4ffd09b7bcfdf736f0340..eb0b52429201824ce59814a9d601f1ce41e8a392 100644 (file)
@@ -1,3 +1,14 @@
+2005-04-20  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/java/beans/IntrospectionIncubator.java:
+       Fixed HTML tags in javadocs.
+
+2005-04-20  Jeroen Frijters  <jeroen@frijters.net>
+
+       * gnu/java/beans/IntrospectionIncubator.java
+       (addToPropertyHash, addToListenerHash): Don't confuse get(),
+       set(), is(), add() and remove() with properties or events.
+
 2005-04-20  Michael Koch  <konqueror@gmx.de>
 
        * gnu/java/awt/image/XBMDecoder.java:
index 21bf984d24c96bed4de1a6c471dd42b2197f5c45..9c2a652c3ed558ff4b99082e9b29871ace2e6449 100644 (file)
@@ -82,14 +82,14 @@ public class IntrospectionIncubator {
 
        /** Examines the given method and files it in a suitable collection.
         * It files the method as a property method if it finds:
-        * <lu>
+        * <ul>
         * <li>boolean "is" getter</li>
         * <li>"get" style getter</li>
         * <li>single argument setter</li>
         * <li>indiced setter and getter</li> 
         * </ul>
         * It files the method as a listener method if all of these rules apply:
-        * <lu>
+        * <ul>
         * <li>the method name starts with "add" or "remove"</li>
         * <li>there is only a single argument</li>
         * <li>the argument type is a subclass of <code>java.util.EventListener</code></li>
@@ -323,6 +323,8 @@ public class IntrospectionIncubator {
                                return;
                }
                newName = capitalize(newName);
+               if (newName.length() == 0)
+                       return;
 
                DoubleKey k = new DoubleKey(type,newName);
                Method[] methods = (Method[])propertyMethods.get(k);
@@ -350,6 +352,8 @@ public class IntrospectionIncubator {
                                return;
                }
                newName = capitalize(newName);
+               if (newName.length() == 0)
+                       return;
 
                DoubleKey k = new DoubleKey(type,newName);
                Method[] methods = (Method[])listenerMethods.get(k);