Ignore:
Timestamp:
2015-05-17T02:40:26+02:00 (11 years ago)
Author:
Don-vip
Message:

code style - Method makes literal string comparisons passing the literal as an argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java

    r7881 r8373  
    4040                if (litValue instanceof Keyword && "none".equals(((Keyword) litValue).val)) {
    4141                    this.val = null;
    42                 } else if (key.equals(TEXT)) {
     42                } else if (TEXT.equals(key)) {
    4343                    /* Special case for declaration 'text: ...'
    4444                     *
     
    7777                value = val;
    7878            }
    79             if (key.equals(ICON_IMAGE) || key.equals(FILL_IMAGE) || key.equals(REPEAT_IMAGE)) {
     79            if (ICON_IMAGE.equals(key) || FILL_IMAGE.equals(key) || REPEAT_IMAGE.equals(key)) {
    8080                if (value instanceof String) {
    8181                    value = new IconReference((String) value, env.source);
Note: See TracChangeset for help on using the changeset viewer.