Changeset 34658 in osm for applications


Ignore:
Timestamp:
2018-09-15T14:31:18+02:00 (6 years ago)
Author:
donvip
Message:

fix UnnecessaryParentheses warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/addrinterpolation/src/org/openstreetmap/josm/plugins/AddrInterpolation/AddrInterpolationDialog.java

    r34487 r34658  
    352352            char endingChar = endValueString.charAt(endValueString.length()-1);
    353353
    354             if ((!IsNumeric("" + startingChar)) && (!IsNumeric("" + endingChar))) {
     354            if (!IsNumeric("" + startingChar) && !IsNumeric("" + endingChar)) {
    355355                // Both end with alpha
    356356                SelectInterpolationMethod("alphabetic");
     
    358358            }
    359359
    360             if ((IsNumeric("" + startingChar)) && (!IsNumeric("" + endingChar))) {
     360            if (IsNumeric("" + startingChar) && !IsNumeric("" + endingChar)) {
    361361                endingChar = Character.toUpperCase(endingChar);
    362362                if ((endingChar >= 'A') && (endingChar <= 'Z')) {
     
    10801080            }
    10811081            Map<String, String> tags = new HashMap<>();
    1082             if ((city != null) || (streetNameButton.isSelected())) {
     1082            if (city != null || streetNameButton.isSelected()) {
    10831083                // Include street unconditionally if adding nodes only or city name specified
    10841084                tags.put("addr:street", streetName);
     
    11801180
    11811181            boolean isOk = false;
    1182             if ((IsNumeric("" + startingChar)) && (!IsNumeric("" + endingChar))) {
     1182            if (IsNumeric("" + startingChar) && !IsNumeric("" + endingChar)) {
    11831183                endingChar = Character.toUpperCase(endingChar);
    11841184                if ((endingChar >= 'A') && (endingChar <= 'Z')) {
     
    11861186                    isOk = true;
    11871187                }
    1188             } else if ((!IsNumeric("" + startingChar)) && (!IsNumeric("" + endingChar))) {
     1188            } else if (!IsNumeric("" + startingChar) && !IsNumeric("" + endingChar)) {
    11891189                // Both are alpha
    11901190                isOk = true;
Note: See TracChangeset for help on using the changeset viewer.