Changeset 34658 in osm for applications/editors
- Timestamp:
- 2018-09-15T14:31:18+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/addrinterpolation/src/org/openstreetmap/josm/plugins/AddrInterpolation/AddrInterpolationDialog.java
r34487 r34658 352 352 char endingChar = endValueString.charAt(endValueString.length()-1); 353 353 354 if ( (!IsNumeric("" + startingChar)) && (!IsNumeric("" + endingChar))) {354 if (!IsNumeric("" + startingChar) && !IsNumeric("" + endingChar)) { 355 355 // Both end with alpha 356 356 SelectInterpolationMethod("alphabetic"); … … 358 358 } 359 359 360 if ( (IsNumeric("" + startingChar)) && (!IsNumeric("" + endingChar))) {360 if (IsNumeric("" + startingChar) && !IsNumeric("" + endingChar)) { 361 361 endingChar = Character.toUpperCase(endingChar); 362 362 if ((endingChar >= 'A') && (endingChar <= 'Z')) { … … 1080 1080 } 1081 1081 Map<String, String> tags = new HashMap<>(); 1082 if ( (city != null) || (streetNameButton.isSelected())) {1082 if (city != null || streetNameButton.isSelected()) { 1083 1083 // Include street unconditionally if adding nodes only or city name specified 1084 1084 tags.put("addr:street", streetName); … … 1180 1180 1181 1181 boolean isOk = false; 1182 if ( (IsNumeric("" + startingChar)) && (!IsNumeric("" + endingChar))) {1182 if (IsNumeric("" + startingChar) && !IsNumeric("" + endingChar)) { 1183 1183 endingChar = Character.toUpperCase(endingChar); 1184 1184 if ((endingChar >= 'A') && (endingChar <= 'Z')) { … … 1186 1186 isOk = true; 1187 1187 } 1188 } else if ( (!IsNumeric("" + startingChar)) && (!IsNumeric("" + endingChar))) {1188 } else if (!IsNumeric("" + startingChar) && !IsNumeric("" + endingChar)) { 1189 1189 // Both are alpha 1190 1190 isOk = true;
Note:
See TracChangeset
for help on using the changeset viewer.