- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ofDays (0.03 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
} try { builder.callTimeout(Duration.ofDays(365)) } catch (ignored: IllegalArgumentException) { } try { builder.connectTimeout(Duration.ofDays(365)) } catch (ignored: IllegalArgumentException) { } try { builder.writeTimeout(Duration.ofDays(365)) } catch (ignored: IllegalArgumentException) { } try {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
} @GwtIncompatible // Duration @IgnoreJRERequirement // No more dangerous than wherever the caller got the Duration from public void testLargeDurationsAreOk() { Duration threeHundredYears = Duration.ofDays(365 * 300); CacheBuilder<Object, Object> unused = CacheBuilder.newBuilder() .expireAfterWrite(threeHundredYears) .expireAfterAccess(threeHundredYears)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalStateException.class, () -> builder2.weakValues()); } @GwtIncompatible // Duration public void testLargeDurationsAreOk() { Duration threeHundredYears = Duration.ofDays(365 * 300); CacheBuilder<Object, Object> unused = CacheBuilder.newBuilder() .expireAfterWrite(threeHundredYears) .expireAfterAccess(threeHundredYears)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25K bytes - Viewed (0)