Ignore:
Timestamp:
2017-04-10T03:28:15+02:00 (7 years ago)
Author:
Don-vip
Message:

findbugs - EI_EXPOSE_REP

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CacheCustomContent.java

    r11510 r11879  
    1212
    1313import org.openstreetmap.josm.Main;
     14import org.openstreetmap.josm.tools.Utils;
    1415
    1516/**
     
    136137     * @throws T if an error occurs
    137138     */
    138     public byte[] updateForce() throws T {
     139    private byte[] updateForce() throws T {
    139140        this.data = updateData();
    140141        saveToDisk();
     
    162163            loadFromDisk();
    163164        }
    164         return data;
     165        return Utils.copyArray(data);
    165166    }
    166167
  • trunk/src/org/openstreetmap/josm/io/auth/CredentialsAgentResponse.java

    r9059 r11879  
    4040     */
    4141    public char[] getPassword() {
    42         return password;
     42        return Utils.copyArray(password);
    4343    }
    4444
Note: See TracChangeset for help on using the changeset viewer.