Ticket #21645: extract_common.patch

File extract_common.patch, 5.1 KB (added by gaben, 4 years ago)
  • src/org/openstreetmap/josm/data/coor/EastNorth.java

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/org/openstreetmap/josm/data/coor/EastNorth.java b/src/org/openstreetmap/josm/data/coor/EastNorth.java
    a b  
    5353    }
    5454
    5555    /**
    56      * Adds the coordinates of an other EastNorth instance to this one.
     56     * Adds the coordinates of another EastNorth instance to this one.
    5757     * @param other The other instance.
    5858     * @return The new EastNorth position.
    5959     */
     
    157157    }
    158158
    159159    /**
    160      * Returns an EastNorth representing the this EastNorth rotated around
     160     * Returns an EastNorth representing this EastNorth rotated around
    161161     * a given EastNorth by a given angle
    162162     * @param pivot the center of the rotation
    163163     * @param angle the angle of the rotation
  • src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTagTransferData.java

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTagTransferData.java b/src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTagTransferData.java
    a b  
    4141
    4242        for (PrimitiveData primitive : source) {
    4343            tags.get(primitive.getType()).add(TagCollection.from(primitive));
    44             counts.merge(primitive.getType(), 1, (a, b) -> a + b);
     44            counts.merge(primitive.getType(), 1, Integer::sum);
    4545        }
    4646    }
    4747
  • src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java b/src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java
    a b  
    130130                        }
    131131                    }
    132132                sources.removeSources(sourcesToRemove);
    133                 return true;
    134             } else {
    135                 return true;
    136             }
     133            }
     134            return true;
    137135        }
    138136    }
    139137
  • src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java b/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
    a b  
    346346                char ch = s.charAt(i);
    347347                if (ch == '\\' || ch == '(' || ch == '{' || ch == ',' || ch == ')' || ch == '}' || ch == '=') {
    348348                    result.append('\\');
    349                     result.append(ch);
    350                 } else {
    351                     result.append(ch);
    352                 }
     349                }
     350                result.append(ch);
    353351            }
    354352        }
    355353
  • src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java b/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java
    a b  
    217217                    // pop last id on end of object, don't process further
    218218                    lastIds.pop();
    219219                    ((Chunk) o).id = null;
    220                     continue;
    221220                } else {
    222221                    // if preset item contains an id, store a mapping for later usage
    223222                    String lastId = ((Chunk) o).id;
    224223                    lastIds.push(lastId);
    225224                    byId.put(lastId, new ArrayList<>());
    226                     continue;
    227                 }
     225                }
     226                continue;
    228227            } else if (!lastIds.isEmpty()) {
    229228                // add object to mapping for later usage
    230229                byId.get(lastIds.peek()).add(o);