From: Richard K. <rk...@us...> - 2003-09-23 10:04:54
|
User: rkunze Date: 03/09/23 03:04:48 Modified: src/java/org/andromda/core/uml14 UMLStaticHelper.java Log: Bug: getAttributes() threw a NullPointerException on calling isAttribute() because this$0 (the reference to the outer class) seems not to be set during the constructor call where it has been used. Workaround: Made isAttribute() static Revision Changes Path 1.11 +2 -2 andromda/src/java/org/andromda/core/uml14/UMLStaticHelper.java Index: UMLStaticHelper.java =================================================================== RCS file: /cvsroot/andromda/andromda/src/java/org/andromda/core/uml14/UMLStaticHelper.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -r1.10 -r1.11 --- UMLStaticHelper.java 21 Sep 2003 11:46:01 -0000 1.10 +++ UMLStaticHelper.java 23 Sep 2003 10:04:48 -0000 1.11 @@ -222,7 +222,7 @@ * @param object The object to test * @return <code>true</code> if the test succeeds, <code>false</code> otherwise */ - public boolean isAttribute(Object object) { + public static boolean isAttribute(Object object) { return (object instanceof Attribute); } @@ -352,7 +352,7 @@ * *@author Anthony Mowers */ - private abstract static class FilteredCollection extends Vector { + private static abstract class FilteredCollection extends Vector { /** * Constructor for the FilterCollection object * |