Ignore:
Timestamp:
2013-07-26T17:28:24+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8902 - string.equals("") => string.isEmpty() (patch by shinigami)

Location:
trunk/src/org/openstreetmap/josm/gui/conflict/tags
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java

    r6084 r6087  
    462462                case RELATION: msg = trn("{0} relation", "{0} relations", numPrimitives, numPrimitives); break;
    463463                }
    464                 text = text.equals("") ? msg : text + ", " + msg;
     464                text = text.isEmpty() ? msg : text + ", " + msg;
    465465            }
    466466            setText(text);
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolver.java

    r6084 r6087  
    174174        if (!cbTagRelations.isSelected())
    175175            return null;
    176         if (tfKey.getText().trim().equals(""))
     176        if (tfKey.getText().trim().isEmpty())
    177177            return null;
    178         if (tfValue.getText().trim().equals(""))
     178        if (tfValue.getText().trim().isEmpty())
    179179            return null;
    180180        if (primitives == null || primitives.isEmpty())
Note: See TracChangeset for help on using the changeset viewer.