Ignore:
Timestamp:
2007-12-18T01:04:35+01:00 (16 years ago)
Author:
gebner
Message:

MergeVisitor: Only parse dates if needed. Reported by Petr Nejedly.

File:
1 edited

Legend:

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

    r490 r496  
    230230
    231231                for (P my : primitives) {
    232                         Date myd = my.timestamp == null ? new Date(0) : my.getTimestamp();
    233                         Date otherd = other.timestamp == null ? new Date(0) : other.getTimestamp();
    234232                        if (my.realEqual(other, false)) {
    235233                                merged.put(other, my);
     
    237235                        }
    238236                        if (my.realEqual(other, true)) {
     237                                Date myd = my.timestamp == null ? new Date(0) : my.getTimestamp();
     238                                Date otherd = other.timestamp == null ? new Date(0) : other.getTimestamp();
     239
    239240                                // they differ in modified/timestamp combination only. Auto-resolve it.
    240241                                merged.put(other, my);
     
    246247                        }
    247248                        if (my.id == other.id && my.id != 0) {
     249                                Date myd = my.timestamp == null ? new Date(0) : my.getTimestamp();
     250                                Date otherd = other.timestamp == null ? new Date(0) : other.getTimestamp();
     251
    248252                                if (my.incomplete || other.incomplete) {
    249253                                        if (my.incomplete) {
Note: See TracChangeset for help on using the changeset viewer.