mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
03.50.2014 8433427527214c83f56c533259efd7f56a1863b3
opendj-config/src/main/java/org/forgerock/opendj/config/DurationUnit.java
@@ -35,35 +35,23 @@
 */
public enum DurationUnit {
    /**
     * A day unit.
     */
    DAYS((long) 24 * 60 * 60 * 1000, "d", "days"),
    /** A day unit. */
    DAYS(24 * 60 * 60 * 1000, "d", "days"),
    /**
     * An hour unit.
     */
    HOURS((long) 60 * 60 * 1000, "h", "hours"),
    /** An hour unit. */
    HOURS(60 * 60 * 1000, "h", "hours"),
    /**
     * A millisecond unit.
     */
    /** A millisecond unit. */
    MILLI_SECONDS(1L, "ms", "milliseconds"),
    /**
     * A minute unit.
     */
    MINUTES((long) 60 * 1000, "m", "minutes"),
    /** A minute unit. */
    MINUTES(60 * 1000, "m", "minutes"),
    /**
     * A second unit.
     */
    /** A second unit. */
    SECONDS(1000L, "s", "seconds"),
    /**
     * A week unit.
     */
    WEEKS((long) 7 * 24 * 60 * 60 * 1000, "w", "weeks");
    /** A week unit. */
    WEEKS(7 * 24 * 60 * 60 * 1000, "w", "weeks");
    /** A lookup table for resolving a unit from its name. */
    private static final Map<String, DurationUnit> NAME_TO_UNIT;