Changeset 1307


Ignore:
Timestamp:
12/13/11 23:53:03 (9 years ago)
Author:
philsmart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • raptor-information-model/trunk/src/main/java/uk/ac/cardiff/model/wsmodel/StatisticalUnitInformation.java

    r1280 r1307  
    2020 
    2121import java.io.Serializable; 
    22 import java.util.Collections; 
     22import java.util.ArrayList; 
    2323import java.util.List; 
    2424 
     
    8282 
    8383    /** 
    84      * @return the postprocessors if not null, otherwise returns an empty list. 
     84     * @return the postprocessors if not null, otherwise creates a new list of postprocessors and return that list. 
    8585     */ 
    8686    public List<ProcessorInformation> getPostprocessors() { 
    87         if (postprocessors!=null){ 
     87        if (postprocessors != null) { 
    8888            return postprocessors; 
    89         } 
    90         else{ 
    91             return Collections.emptyList(); 
     89        } else { 
     90            postprocessors = new ArrayList<ProcessorInformation>(); 
     91            return postprocessors; 
    9292        } 
    9393    } 
Note: See TracChangeset for help on using the changeset viewer.