Changeset 8461 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
- Timestamp:
- 2015-06-03T14:05:30+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r8444 r8461 218 218 skip('='); 219 219 String paramValue = readTillChar(',',')'); 220 if (paramName. length() > 0 &¶mValue.length() > 0) {220 if (!paramName.isEmpty() && !paramValue.isEmpty()) { 221 221 ActionParameter<?> actionParam = actionParams.get(paramName); 222 222 if (actionParam != null) { … … 235 235 skip('='); 236 236 String paramValue = readTillChar(',','}'); 237 if ("icon".equals(paramName) && paramValue. length() > 0) {237 if ("icon".equals(paramName) && !paramValue.isEmpty()) { 238 238 result.setIcon(paramValue); 239 } else if("name".equals(paramName) && paramValue. length() > 0) {239 } else if("name".equals(paramName) && !paramValue.isEmpty()) { 240 240 result.setName(paramValue); 241 241 } … … 289 289 boolean first = true; 290 290 String tmp = action.getName(); 291 if (tmp.length() != 0) {291 if (!tmp.isEmpty()) { 292 292 result.append(first ? "{" : ","); 293 293 result.append("name="); … … 296 296 } 297 297 tmp = action.getIcon(); 298 if (tmp.length() != 0) {298 if (!tmp.isEmpty()) { 299 299 result.append(first ? "{" : ","); 300 300 result.append("icon="); … … 385 385 ActionParameter<Object> param = getParam(paramIndex); 386 386 387 if (param != null && val.length() > 0) {387 if (param != null && !val.isEmpty()) { 388 388 currentAction.getParameters().put(param.getName(), param.readFromString((String)aValue)); 389 389 }
Note:
See TracChangeset
for help on using the changeset viewer.
