Ignore:
Timestamp:
2013-09-08T05:14:39+02:00 (11 years ago)
Author:
Don-vip
Message:

Make some more defensive copies of user-supplied arrays, javadoc

File:
1 edited

Legend:

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

    r5692 r6222  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.io.auth;
     3
     4import org.openstreetmap.josm.tools.Utils;
    35
    46/**
     
    4244     */
    4345    public void setPassword(char[] password) {
    44         this.password = password;
     46        this.password = Utils.copyArray(password);
    4547    }
    4648    /**
Note: See TracChangeset for help on using the changeset viewer.