Changeset 17911 in josm


Ignore:
Timestamp:
2021-05-24T12:13:59+02:00 (4 years ago)
Author:
simon04
Message:

see #14176 - Deprecate DateUtils.newIsoDateTimeFormat

Location:
trunk
Files:
2 edited

Legend:

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

    r17840 r17911  
    245245     * @return a new ISO 8601 date format, for date and time.
    246246     * @since 7299
    247      */
     247     * @deprecated Use {@link Instant#toString()}
     248     */
     249    @Deprecated
    248250    public static SimpleDateFormat newIsoDateTimeFormat() {
    249251        return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX");
  • trunk/test/unit/org/openstreetmap/josm/io/OsmJsonReaderTest.java

    r17749 r17911  
    1212import java.util.Iterator;
    1313
    14 import org.junit.jupiter.api.BeforeAll;
    1514import org.junit.jupiter.api.Test;
    1615import org.junit.jupiter.api.extension.RegisterExtension;
     
    2322import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    2423import org.openstreetmap.josm.testutils.JOSMTestRules;
    25 import org.openstreetmap.josm.tools.date.DateUtils;
    2624
    2725import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    3836    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3937    public JOSMTestRules test = new JOSMTestRules();
    40 
    41     /**
    42      * Setup test
    43      */
    44     @BeforeAll
    45     public static void setUp() {
    46         DateUtils.newIsoDateTimeFormat().setTimeZone(DateUtils.UTC);
    47     }
    4838
    4939    /**
Note: See TracChangeset for help on using the changeset viewer.