Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for ArrayOf (0.07 sec)

  1. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        // Type inference is doomed here: int.class is the same as Integer.class, so this is comparing
        // TypeToken<int[]> and TypeToken<Integer[]>.
        assertEquals(new TypeToken<int[]>() {}, arrayOf(int.class));
        assertEquals(int[].class, arrayOf(int.class).getRawType());
      }
    
      @SuppressWarnings("unused") // used by reflection
      private static class Holder<T> {
        List<T>[] matrix;
    
        void setList(List<T> list) {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

       * to use less. We'll put a cap at 16K. This is arbitrary but should be enough for most purposes.
       */
      private const val SETTINGS_HEADER_TABLE_SIZE_LIMIT = 16_384
    
      val STATIC_HEADER_TABLE =
        arrayOf(
          Header(TARGET_AUTHORITY, ""),
          Header(TARGET_METHOD, "GET"),
          Header(TARGET_METHOD, "POST"),
          Header(TARGET_PATH, "/"),
          Header(TARGET_PATH, "/index.html"),
          Header(TARGET_SCHEME, "http"),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(headersToList(response)).containsExactly("Content-Length: 0")
        assertThat(response.status).isEqualTo("HTTP/1.1 200 OK")
      }
    
      @Test
      fun setResponseMockReason() {
        val reasons =
          arrayOf(
            "Mock Response",
            "Informational",
            "OK",
            "Redirection",
            "Client Error",
            "Server Error",
            "Mock Response",
          )
        for (i in 0..599) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(headersToList(builder)).containsExactly("Content-Length: 0")
        assertThat(builder.status).isEqualTo("HTTP/1.1 200 OK")
      }
    
      @Test
      fun setResponseMockReason() {
        val reasons =
          arrayOf<String?>(
            "Mock Response",
            "Informational",
            "OK",
            "Redirection",
            "Client Error",
            "Server Error",
            "Mock Response",
          )
        for (i in 0..599) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        // Type inference is doomed here: int.class is the same as Integer.class, so this is comparing
        // TypeToken<int[]> and TypeToken<Integer[]>.
        assertEquals(new TypeToken<int[]>() {}, arrayOf(int.class));
        assertEquals(int[].class, arrayOf(int.class).getRawType());
      }
    
      @SuppressWarnings("unused") // used by reflection
      private static class Holder<T> {
        List<T>[] matrix;
    
        void setList(List<T> list) {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          return reuseSocket
        }
      }
    
      @Throws(Exception::class)
      private fun processHandshakeFailure(raw: Socket) {
        val context = SSLContext.getInstance("TLS")
        context.init(null, arrayOf<TrustManager>(UNTRUSTED_TRUST_MANAGER), SecureRandom())
        val sslSocketFactory = context.socketFactory
        val socket =
          sslSocketFactory.createSocket(
            raw,
            raw.inetAddress.hostAddress,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        setUp(parameters.first, parameters.second)
        val editor = cache.edit("k1")!!
        editor.setString(0, "AB")
        editor.setString(1, "C")
        cache.close()
        val expected = if (windows) arrayOf("DIRTY k1") else arrayOf("DIRTY k1", "REMOVE k1")
        assertJournalEquals(*expected)
        editor.commit()
        assertJournalEquals(*expected) // 'REMOVE k1' not written because journal is closed.
      }
    
      @ParameterizedTest
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val certificatePinner: CertificatePinner = CertificatePinner.Builder().build()
        val certificates: List<Certificate> = listOf()
        certificatePinner.check("", listOf(certificate))
        certificatePinner.check("", arrayOf<Certificate>(certificate, certificate).toList())
        val pin: String = CertificatePinner.pin(certificate)
        val default: CertificatePinner = CertificatePinner.DEFAULT
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  9. api/go1.5.txt

    pkg net/url, type URL struct, RawPath string
    pkg os, func LookupEnv(string) (string, bool)
    pkg os/signal, func Ignore(...os.Signal)
    pkg os/signal, func Reset(...os.Signal)
    pkg reflect, func ArrayOf(int, Type) Type
    pkg reflect, func FuncOf([]Type, []Type, bool) Type
    pkg runtime, func ReadTrace() []uint8
    pkg runtime, func StartTrace() error
    pkg runtime, func StopTrace()
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val hostnameVerifier = RecordingHostnameVerifier()
        val trustManager = RecordingTrustManager(handshakeCertificates.trustManager)
        val sslContext = get().newSSLContext()
        sslContext.init(null, arrayOf<TrustManager>(trustManager), null)
        client =
          client.newBuilder()
            .hostnameVerifier(hostnameVerifier)
            .sslSocketFactory(sslContext.socketFactory, trustManager)
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
Back to top