Ignore:
Timestamp:
2015-06-03T14:05:30+02:00 (9 years ago)
Author:
Don-vip
Message:

global use of String.isEmpty()

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java

    r8442 r8461  
    408408        @Override
    409409        public boolean isValid() {
    410             return getComponent().getText().trim().length() > 0;
     410            return !getComponent().getText().trim().isEmpty();
    411411        }
    412412
     
    429429        @Override
    430430        public boolean isValid() {
    431             return getComponent().getText().trim().length() > 0;
     431            return !getComponent().getText().trim().isEmpty();
    432432        }
    433433
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticPropertiesPanel.java

    r6890 r8461  
    8282        @Override
    8383        public boolean isValid() {
    84             return getComponent().getText().trim().length() > 0;
     84            return !getComponent().getText().trim().isEmpty();
    8585        }
    8686
Note: See TracChangeset for help on using the changeset viewer.