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

findbugs - EI_EXPOSE_REP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/ComparePairType.java

    r11747 r11879  
    1010/**
    1111 * Enumeration of the possible comparison pairs
    12  *
     12 * @since 1650
    1313 */
    1414public enum ComparePairType {
     
    4848
    4949    /**
    50      * replies true, if <code>role</code> is participating in this comparison
    51      * pair
     50     * replies true, if <code>role</code> is participating in this comparison pair
    5251     *
    5352     * @param role  the list role
    54      * @return true, if <code>role</code> is participating in this comparison
    55      * pair; false, otherwise
     53     * @return true, if <code>role</code> is participating in this comparison pair; false, otherwise
    5654     */
    5755    public boolean isParticipatingIn(ListRole role) {
     
    6361
    6462    /**
    65      * replies the pair of {@link ListRole}s participating in this comparison
    66      * pair
     63     * replies the pair of {@link ListRole}s participating in this comparison pair
    6764     *
    6865     * @return  the pair of list roles
    6966     */
    7067    public ListRole[] getParticipatingRoles() {
    71         return participatingRoles;
     68        return Utils.copyArray(participatingRoles);
    7269    }
    7370
    7471    /**
    75      * replies the opposite role of <code>role</code> participating in this comparison
    76      * pair
     72     * replies the opposite role of <code>role</code> participating in this comparison pair
    7773     *
    7874     * @param role one of the two roles in this pair
Note: See TracChangeset for help on using the changeset viewer.