Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 1,754 for builds (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        // don't actually build this beast
      }
    
      public void testMaximumSize_negative() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        assertThrows(IllegalArgumentException.class, () -> builder.maximumSize(-1));
      }
    
      public void testMaximumSize_setTwice() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumSize(16);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  2. api/maven-api-plugin/src/test/java/org/apache/maven/api/plugin/descriptor/another/ExtendedPluginDescriptorTest.java

            ExtendedPluginDescriptor(Builder builder) {
                super(builder);
                this.additionalField = builder.additionalField;
            }
    
            public String getAdditionalField() {
                return additionalField;
            }
    
            static class Builder extends PluginDescriptor.Builder {
                protected String additionalField;
    
                Builder() {
                    super(false);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  3. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliTestMain.kt

    fun main() {
      val client =
        OkHttpClient
          .Builder()
          .addInterceptor(BrotliInterceptor)
          .build()
    
      sendRequest("https://httpbin.org/brotli", client)
      sendRequest("https://httpbin.org/gzip", client)
    }
    
    private fun sendRequest(
      url: String,
      client: OkHttpClient,
    ) {
      val req = Request.Builder().url(url).build()
    
      client.newCall(req).execute().use {
        println(it.body.string())
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.1K bytes
    - Click Count (1)
  4. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt

      }
    
      @Test
      fun toUriFragmentSpecialCharacters() {
        val url =
          HttpUrl
            .Builder()
            .scheme("http")
            .host("host")
            .fragment("=[]:;\"~|?#@^/$%*")
            .build()
        assertThat(url.toString()).isEqualTo("http://host/#=[]:;\"~|?#@^/$%25*")
        assertThat(url.toUri().toString())
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 12K bytes
    - Click Count (0)
  5. samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java

      private final OkHttpClient client = new OkHttpClient.Builder()
          .certificatePinner(
              new CertificatePinner.Builder()
                  .add("publicobject.com", "sha256/Vjs8r4z+80wjNcr1YKepWQboSIRi63WsWXhIMN+eWys=")
                  .build())
          .build();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/robots.txt")
            .build();
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Dec 08 21:30:01 GMT 2019
    - 1.7K bytes
    - Click Count (0)
  6. clause/group_by.go

    	return "GROUP BY"
    }
    
    // Build build group by clause
    func (groupBy GroupBy) Build(builder Builder) {
    	for idx, column := range groupBy.Columns {
    		if idx > 0 {
    			builder.WriteByte(',')
    		}
    
    		builder.WriteQuoted(column)
    	}
    
    	if len(groupBy.Having) > 0 {
    		builder.WriteString(" HAVING ")
    		Where{Exprs: groupBy.Having}.Build(builder)
    	}
    }
    
    // MergeClause merge group by clause
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Tue Mar 30 10:28:09 GMT 2021
    - 1K bytes
    - Click Count (0)
  7. android/guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

          ImmutableList.Builder<Object> builder = new ImmutableList.Builder<>(size);
          for (int i = 0; i < size; i++) {
            builder.add(OBJECT);
          }
          dummy += builder.build().size();
        }
        return dummy;
      }
    
      @Benchmark
      int copyArrayList(int reps) {
        int size = this.size;
        int dummy = 0;
        for (int rep = 0; rep < reps; rep++) {
          List<Object> builder = new ArrayList<>();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  8. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

    public final class WebSocketEcho extends WebSocketListener {
      private void run() {
        OkHttpClient client = new OkHttpClient.Builder()
            .readTimeout(0,  TimeUnit.MILLISECONDS)
            .build();
    
        Request request = new Request.Builder()
            .url("ws://echo.websocket.org")
            .build();
        client.newWebSocket(request, this);
    
        // Trigger shutdown of the dispatcher's executor so this process exits immediately.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Apr 04 11:40:21 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt

                  ),
                  "... contents of file2.gif ..."
                    .toByteArray(StandardCharsets.UTF_8)
                    .toRequestBody("image/gif".toMediaType()),
                ).build(),
            ).build()
        assertThat(body.boundary).isEqualTo("AaB03x")
        assertThat(body.type).isEqualTo(MultipartBody.FORM)
        assertThat(body.contentType().toString()).isEqualTo(
          "multipart/form-data; boundary=AaB03x",
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        /**
         * Creates a new builder. The returned builder is equivalent to the builder generated by {@link
         * ImmutableSortedMap#orderedBy}.
         */
        public Builder(Comparator<? super K> comparator) {
          this(comparator, ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY);
        }
    
        private Builder(Comparator<? super K> comparator, int initialCapacity) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 52.9K bytes
    - Click Count (0)
Back to Top