Changeset 404 for trunk/EventBenchConsole/src/de/ugoe
- Timestamp:
- 04/03/12 10:05:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/jfc/data/JFCTargetComparator.java
r390 r404 351 351 if (obj instanceof JFCWidget) { 352 352 JFCWidget other = (JFCWidget) obj; 353 354 355 353 boolean titleEqual = CollectionUtils.containsAny(titles, other.titles); 356 354 boolean hashEqual = CollectionUtils.containsAny(hashCodes, other.hashCodes); 357 358 /*359 Set<String> titlesCopy = new LinkedHashSet<String>(titles);360 Set<String> hashCodesCopy = new LinkedHashSet<String>(hashCodes);361 362 titlesCopy.retainAll(other.titles);363 hashCodesCopy.retainAll(other.hashCodes);*/364 355 365 356 boolean retVal; … … 373 364 && text.equals(other.text) && (titleEqual || hashEqual)); 374 365 } 375 /*376 if (widgetClass.equals("Class")) {377 retVal = (widgetClass.equals(other.widgetClass)378 && text.equals(other.text) && (!titlesCopy379 .isEmpty() || !hashCodesCopy.isEmpty()));380 } else {381 retVal = (widgetClass.equals(other.widgetClass)382 && index.equals(other.index)383 && text.equals(other.text) && (!titlesCopy384 .isEmpty() || !hashCodesCopy.isEmpty()));385 }*/386 366 return retVal; 387 367 }
Note: See TracChangeset
for help on using the changeset viewer.