Index: MethodElement.java =================================================================== RCS file: /cvs/openide/src/org/openide/src/MethodElement.java,v retrieving revision 1.29 diff -c -r1.29 MethodElement.java *** MethodElement.java 2001/01/15 14:41:54 1.29 --- MethodElement.java 2001/01/24 07:58:44 *************** *** 139,145 **** public static final class Key extends ConstructorElement.Key { /** Name of the method */ private Identifier name; ! /** Constructs a key by name and parameters. * @param name the method name * @param params the method's parameters --- 139,146 ---- public static final class Key extends ConstructorElement.Key { /** Name of the method */ private Identifier name; ! private Type returnType; ! /** Constructs a key by name and parameters. * @param name the method name * @param params the method's parameters *************** *** 155,167 **** */ public Key (final MethodElement me) { super(me); ! this.name = me.getName(); } /* Returns true if parameters are the same */ public boolean equals (Object obj) { if (!(obj instanceof Key)) return false; ! return super.equals(obj) && name.equals(((Key)obj).name); } /* Computes hashcode as exclusive or of --- 156,172 ---- */ public Key (final MethodElement me) { super(me); ! name = me.getName(); ! returnType=me.getReturn(); } /* Returns true if parameters are the same */ public boolean equals (Object obj) { if (!(obj instanceof Key)) return false; ! if (!name.equals(((Key)obj).name) || !super.equals(obj)) return false; ! if (returnType==null) ! return true; ! return returnType.equals(((Key)obj).returnType); } /* Computes hashcode as exclusive or of