Ignore:
Timestamp:
2017-04-10T00:14:42+02:00 (7 years ago)
Author:
Don-vip
Message:

findbugs - EI_EXPOSE_REP2 + javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java

    r11620 r11878  
    163163    }
    164164
     165    /**
     166     * Null-safe date cloning method.
     167     * @param d date to clone, or null
     168     * @return cloned date, or null
     169     * @since 11878
     170     */
     171    public static Date cloneDate(Date d) {
     172        return d != null ? (Date) d.clone() : null;
     173    }
     174
    165175    private static boolean checkLayout(String text, String pattern) {
    166176        if (text.length() != pattern.length())
Note: See TracChangeset for help on using the changeset viewer.