Ignore:
Timestamp:
2015-06-27T21:43:35+02:00 (9 years ago)
Author:
Don-vip
Message:

fix remaining checkstyle issues

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r8510 r8540  
    528528            for (int i = 0; i < keys.length; i += 2) {
    529529                if (keys[i].equals(key)) {
    530                     keys[i+1] = value;  // This modifies the keys array but it doesn't make it invalidate for any time so its ok (see note no top)
     530                    // This modifies the keys array but it doesn't make it invalidate for any time so its ok (see note no top)
     531                    keys[i+1] = value;
    531532                    keysChangedImpl(originalKeys);
    532533                    return;
  • trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java

    r8512 r8540  
    178178                OsmPrimitive source = sourceDataSet.getPrimitiveById(target.getPrimitiveId());
    179179                if (source == null)
    180                     throw new RuntimeException(tr("Object of type {0} with id {1} was marked to be deleted, but it''s missing in the source dataset",
     180                    throw new RuntimeException(
     181                            tr("Object of type {0} with id {1} was marked to be deleted, but it''s missing in the source dataset",
    181182                            target.getType(), target.getUniqueId()));
    182183
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r8512 r8540  
    374374                    final boolean containsN = visited.contains(n);
    375375                    visited.add(n);
    376                     if (!containsN && (predicate == null || predicate.evaluate(n)) && n.isConnectedTo(otherNodes, hops - 1, predicate, visited)) {
     376                    if (!containsN && (predicate == null || predicate.evaluate(n))
     377                            && n.isConnectedTo(otherNodes, hops - 1, predicate, visited)) {
    377378                        return true;
    378379                    }
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java

    r8510 r8540  
    7575     * @since 5440
    7676     */
    77     public HistoryOsmPrimitive(long id, long version, boolean visible, User user, long changesetId, Date timestamp, boolean checkHistoricParams) {
     77    public HistoryOsmPrimitive(long id, long version, boolean visible, User user, long changesetId, Date timestamp,
     78            boolean checkHistoricParams) {
    7879        ensurePositiveLong(id, "id");
    7980        ensurePositiveLong(version, "version");
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryRelation.java

    r8510 r8540  
    7070     * @throws IllegalArgumentException if preconditions are violated
    7171     */
    72     public HistoryRelation(long id, long version, boolean visible, User user, long changesetId, Date timestamp, List<RelationMemberData> members) {
     72    public HistoryRelation(long id, long version, boolean visible, User user, long changesetId, Date timestamp,
     73            List<RelationMemberData> members) {
    7374        this(id, version, visible, user, changesetId, timestamp);
    7475        if (members != null) {
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java

    r8513 r8540  
    127127        try {
    128128            // print highlighted virtual nodes. Since only the color changes, simply
    129             // drawing them over the existing ones works fine (at least in their current
    130             // simple style)
     129            // drawing them over the existing ones works fine (at least in their current simple style)
    131130            path = new GeneralPath();
    132131            for (WaySegment wseg: data.getHighlightedVirtualNodes()) {
     
    141140            // if the way has changed while being rendered (fix #7979)
    142141            // TODO: proper solution ?
    143             // Idea from bastiK: avoid the WaySegment class and add another data class with { Way way; Node firstNode, secondNode; int firstIdx; }.
    144             // On read, it would first check, if the way still has firstIdx+2 nodes, then check if the corresponding way nodes are still the same
    145             // and report changes in a more controlled manner.
     142            // Idea from bastiK:
     143            // avoid the WaySegment class and add another data class with { Way way; Node firstNode, secondNode; int firstIdx; }.
     144            // On read, it would first check, if the way still has firstIdx+2 nodes, then check if the corresponding way nodes are still
     145            // the same and report changes in a more controlled manner.
    146146            if (Main.isTraceEnabled()) {
    147147                Main.trace(e.getMessage());
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java

    r8510 r8540  
    250250        if (!isRegistered(defaultRenderer))
    251251            throw new IllegalStateException(
    252                     MessageFormat.format("Class ''{0}'' not registered as renderer. Can''t activate default renderer.", defaultRenderer.getName())
     252                    MessageFormat.format("Class ''{0}'' not registered as renderer. Can''t activate default renderer.",
     253                            defaultRenderer.getName())
    253254            );
    254255        activate(defaultRenderer);
Note: See TracChangeset for help on using the changeset viewer.