Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for timeDurationTruncatedToMaxValue (0.41 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CacheControlJvmTest.kt

        assertThat(cacheControl.toString()).isEqualTo("max-age=172800")
        assertThat(cacheControl.toString()).isSameInstanceAs(cacheControl.toString())
      }
    
      @Test
      @Throws(Exception::class)
      fun timeDurationTruncatedToMaxValue() {
        val cacheControl =
          CacheControl
            .Builder()
            .maxAge(365 * 100, TimeUnit.DAYS) // Longer than Integer.MAX_VALUE seconds.
            .build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 7.4K bytes
    - Click Count (0)
Back to Top