Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] SourceModuleStructureRequestor.java

Hi Roy,

while was correct here.
This code finds unique value, so it might require several increments.

Regards,
Alex

----- Forwarded Message -----
From: "Eclipse CVS Genie" <genie@xxxxxxxxxxx>
To: dltk-commits@xxxxxxxxxxx
Sent: Monday, August 31, 2009 10:38:06 PM GMT +06:00 Almaty, Novosibirsk
Subject: [dltk-commits] rganor org.eclipse.dltk/core/plugins/org.eclipse.dltk.core/model/org/eclipse/dltk/internal/core SourceModuleStructureRequestor.java

Update of /cvsroot/technology/org.eclipse.dltk/core/plugins/org.eclipse.dltk.core/model/org/eclipse/dltk/internal/core
In directory node1:/tmp/cvs-serv88431/model/org/eclipse/dltk/internal/core

Modified Files:
      Tag: R1_0_maintenance
	SourceModuleStructureRequestor.java 
Log Message:
fix if <> while 

Index: SourceModuleStructureRequestor.java
===================================================================
RCS file: /cvsroot/technology/org.eclipse.dltk/core/plugins/org.eclipse.dltk.core/model/org/eclipse/dltk/internal/core/SourceModuleStructureRequestor.java,v
retrieving revision 1.8
retrieving revision 1.8.4.1
diff -u -d -r1.8 -r1.8.4.1
--- SourceModuleStructureRequestor.java	18 May 2009 16:17:21 -0000	1.8
+++ SourceModuleStructureRequestor.java	31 Aug 2009 15:38:04 -0000	1.8.4.1
@@ -68,7 +68,7 @@
 	 * handle being created until there is no conflict.
 	 */
 	protected void resolveDuplicates(SourceRefElement handle) {
-		while (this.newElements.containsKey(handle)) {
+		if (this.newElements.containsKey(handle)) {
 			handle.occurrenceCount++;
 		}
 	}

_______________________________________________
dltk-commits mailing list
dltk-commits@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-commits


Back to the top