Ignore:
Timestamp:
04/29/13 16:43:17 (11 years ago)
Author:
pharms
Message:
  • remove a find bugs warning
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/taskequality/TaskAndSelectionComparisonRule.java

    r1154 r1190  
    3333public class TaskAndSelectionComparisonRule implements TaskComparisonRule { 
    3434     
    35     /** the rule manager for internally comparing tasks */ 
    36     private TaskEqualityRuleManager mRuleManager; 
    37      
    38     /** 
    39      * <p> 
    40      * simple constructor to provide the rule with the task equality rule manager to be able 
    41      * to perform comparisons of the children of provided tasks 
    42      * </p> 
    43      *  
    44      * @param ruleManager the rule manager for comparing tasks 
    45      */ 
    46     TaskAndSelectionComparisonRule(TaskEqualityRuleManager ruleManager) { 
    47         super(); 
    48         mRuleManager = ruleManager; 
    49     } 
    50  
    5135    /* (non-Javadoc) 
    5236     * @see NodeComparisonRule#isApplicable(ITask, ITask) 
     
    196180    { 
    197181        if (requiredEqualityLevel == null) { 
    198             return mRuleManager.compare(child1, child2); 
     182            return TaskEqualityRuleManager.getInstance().compare(child1, child2); 
    199183        } 
    200         else if (mRuleManager.areAtLeastEqual(child1, child2, requiredEqualityLevel)) { 
     184        else if (TaskEqualityRuleManager.getInstance().areAtLeastEqual 
     185                     (child1, child2, requiredEqualityLevel)) 
     186        { 
    201187            return requiredEqualityLevel; 
    202188        } 
Note: See TracChangeset for help on using the changeset viewer.