Changeset 9366

Show
Ignore:
Timestamp:
11/11/08 15:09:34 (1 year ago)
Author:
hannes
Message:

Use LinkedHashSet in ResourceProperties to preserve insertion order in properties updates.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • helma/helma/trunk/src/helma/util/ResourceProperties.java

    r9320 r9366  
    7474        // Since resources don't implement Comparable, we can't add them to a "naked" TreeSet 
    7575        // As a result, resource ordering is random when updating. 
    76         resources = new HashSet(); 
     76        resources = new LinkedHashSet(); 
    7777    } 
    7878 
     
    141141        this.parentProperties = parentProperties; 
    142142        this.prefix = prefix; 
    143         resources = new HashSet(); 
     143        resources = new LinkedHashSet(); 
    144144        setIgnoreCase(parentProperties.ignoreCase);         
    145145        forceUpdate();