Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for withZone (0.03 seconds)

  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")
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 06:28:29 GMT 2025
    - 5.8K bytes
    - Click Count (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;
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 06:28:29 GMT 2025
    - 5.6K bytes
    - Click Count (0)
Back to Top