Ignore:
Timestamp:
2017-11-13T00:59:15+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #15547 - fix major performance drawback of AutoCompletionSet (regression from r12859)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/tagging/ac/AutoCompletionItem.java

    r12859 r13121  
    2222    private AutoCompletionPriority priority;
    2323    /** the value of this item */
    24     private String value;
     24    private final String value;
    2525
    2626    /**
     
    7979     * @param value the value; must not be null
    8080     * @throws IllegalArgumentException if value if null
     81     * @deprecated value is now final, set it when constructing the object
    8182     */
     83    @Deprecated
    8284    public void setValue(String value) {
    8385        CheckParameterUtil.ensureParameterNotNull(value, "value");
    84         this.value = value;
     86        throw new UnsupportedOperationException("setValue() is no longer supported");
    8587    }
    8688
Note: See TracChangeset for help on using the changeset viewer.