Ignore:
Timestamp:
2014-08-20T14:36:08+02:00 (7 years ago)
Author:
Don-vip
Message:

global use of Utils.copyArray()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/SequenceCommand.java

    r7005 r7436  
    1212import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1313import org.openstreetmap.josm.tools.ImageProvider;
     14import org.openstreetmap.josm.tools.Utils;
    1415
    1516/**
     
    6970        return sequence[sequence.length-1];
    7071    }
    71    
     72
    7273    protected final void undoCommands(int start) {
    7374        // We probably aborted this halfway though the
     
    114115        return prims;
    115116    }
    116    
     117
    117118    protected final void setSequence(Command[] sequence) {
    118         this.sequence = Arrays.copyOf(sequence, sequence.length);
     119        this.sequence = Utils.copyArray(sequence);
    119120    }
    120    
     121
    121122    protected final void setSequenceComplete(boolean sequenceComplete) {
    122123        this.sequenceComplete = sequenceComplete;
Note: See TracChangeset for help on using the changeset viewer.