Changeset 1033


Ignore:
Timestamp:
01/13/13 17:04:08 (12 years ago)
Author:
adeicke
Message:

Replaced constructor with appropriate annotation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/UsabilityEvaluationFacade.java

    r1030 r1033  
    55 
    66import lombok.AccessLevel; 
     7import lombok.AllArgsConstructor; 
    78import lombok.NoArgsConstructor; 
    89 
     
    2425    } 
    2526 
     27    @AllArgsConstructor 
    2628    protected static class ExecuteUsabilityEvaluationStep { 
    2729         
    28         private UsabilityRuleset usabilityRuleset; 
    29  
    30         public ExecuteUsabilityEvaluationStep(UsabilityRuleset usabilityRuleset) { 
    31             this.usabilityRuleset = usabilityRuleset; 
    32         } 
     30        private final UsabilityRuleset usabilityRuleset; 
    3331 
    3432        public UsabilityEvaluationReport evaluateUsabilityOf(ITaskTree taskTree) { 
    3533            Preconditions.checkNotNull(taskTree); 
    36             EnumSet<? extends UsabilityRule> rulesetForUsabilityEvaluation = usabilityRuleset.getRulesetForUsabilityEvaluation(); 
     34            EnumSet<? extends UsabilityRule> evaluationRules = usabilityRuleset.evaluationRules(); 
    3735            List<UsabilityDefect> evaluationResults =  
    38                     Lists.newArrayListWithCapacity(rulesetForUsabilityEvaluation.size()); 
    39             for(UsabilityRule usabilityRule : rulesetForUsabilityEvaluation) { 
     36                    Lists.newArrayListWithCapacity(evaluationRules.size()); 
     37            for(UsabilityRule usabilityRule : evaluationRules) { 
    4038                Optional<UsabilityDefect> ruleEvaluationResult = usabilityRule.evaluate(taskTree); 
    4139                if(ruleEvaluationResult.isPresent()) { 
Note: See TracChangeset for help on using the changeset viewer.