Changeset 404


Ignore:
Timestamp:
04/03/12 10:05:44 (12 years ago)
Author:
sherbold
Message:
  • code clean-up
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/jfc/data/JFCTargetComparator.java

    r390 r404  
    351351                        if (obj instanceof JFCWidget) { 
    352352                                JFCWidget other = (JFCWidget) obj; 
    353                                  
    354                                  
    355353                                boolean titleEqual = CollectionUtils.containsAny(titles, other.titles); 
    356354                                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);*/ 
    364355 
    365356                                boolean retVal; 
     
    373364                                                        && text.equals(other.text) && (titleEqual || hashEqual)); 
    374365                                } 
    375                                 /* 
    376                                 if (widgetClass.equals("Class")) { 
    377                                         retVal = (widgetClass.equals(other.widgetClass) 
    378                                                         && text.equals(other.text) && (!titlesCopy 
    379                                                         .isEmpty() || !hashCodesCopy.isEmpty())); 
    380                                 } else { 
    381                                         retVal = (widgetClass.equals(other.widgetClass) 
    382                                                         && index.equals(other.index) 
    383                                                         && text.equals(other.text) && (!titlesCopy 
    384                                                         .isEmpty() || !hashCodesCopy.isEmpty())); 
    385                                 }*/ 
    386366                                return retVal; 
    387367                        } 
Note: See TracChangeset for help on using the changeset viewer.