Update of /cvsroot/nice/Nice/src/bossa/link
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4765/src/bossa/link
Modified Files:
Alternative.java
Log Message:
Take into account existing methods that specialize new ones (not yet for
existing Java methods).
Index: Alternative.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/link/Alternative.java,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** Alternative.java 7 Aug 2004 14:20:27 -0000 1.52
--- Alternative.java 12 Oct 2004 18:39:18 -0000 1.53
***************
*** 220,223 ****
--- 220,239 ----
}
+ public static void addAll(MethodDeclaration from, MethodDeclaration to)
+ {
+ List list = (List) alternatives.get(from.getFullName());
+
+ if (list == null)
+ return;
+
+ String fullName = to.getFullName();
+
+ for(Iterator i = list.iterator(); i.hasNext();)
+ {
+ Alternative a = (Alternative) i.next();
+ a.add(fullName);
+ }
+ }
+
public static Stack sortedAlternatives(MethodDeclaration m)
{
|