Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FakeCipherSuite_instancesAreInterned (0.25 sec)

  1. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

       */
      @Test
      fun instancesAreInterned_survivesGarbageCollection() {
        // We're not holding onto a reference to this String instance outside of the CipherSuite...
        val cs = forJavaName("FakeCipherSuite_instancesAreInterned")
        System.gc() // Unless cs references the String instance, it may now be garbage collected.
        assertThat(forJavaName(java.lang.String(cs.javaName) as String))
          .isSameAs(cs)
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top