Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WithZone (0.31 sec)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

            // Verify that attempting to change timezone returns the same instance
            Clock newClock = clock.withZone(ZoneId.systemDefault());
            assertSame(clock, newClock, "withZone() should return the same clock instance");
        }
    
        @Test
        @DisplayName("MonotonicClock should maintain monotonic time progression")
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

         * The provided zone parameter is ignored.
         *
         * @param zone the target timezone (ignored)
         * @return this clock instance
         */
        @Override
        public Clock withZone(ZoneId zone) {
            // Monotonic clock is always UTC-based
            return this;
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top