Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 279 for cloneOf (0.04 sec)

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

        server.enqueue(MockResponse(body = "def"))
        val request = Request(server.url("/"))
        val call = client.newCall(request)
        val response1 = call.execute()
        val cloned = call.clone()
        val response2 = cloned.execute()
        assertThat("abc").isEqualTo(response1.body.string())
        assertThat("def").isEqualTo(response2.body.string())
      }
    
      @Test
      fun legalToExecuteTwiceCloning_Async() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 147.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

    internal fun <T> Array<out T>?.toImmutableList(): List<T> =
      when {
        this.isNullOrEmpty() -> emptyList()
        this.size == 1 -> Collections.singletonList(this[0])
        else -> this.clone().asList().unmodifiable()
      }
    
    /** Closes this, ignoring any checked exceptions. */
    internal fun Socket.closeQuietly() {
      try {
        close()
      } catch (e: AssertionError) {
        throw e
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (1)
  3. guava/src/com/google/common/hash/BloomFilterStrategies.java

        private final LongAdder bitCount;
    
        LockFreeBitArray(long bits) {
          checkArgument(bits > 0, "data length is zero!");
          // Avoid delegating to this(long[]), since AtomicLongArray(long[]) will clone its input and
          // thus double memory usage.
          this.data =
              new AtomicLongArray(Ints.checkedCast(LongMath.divide(bits, 64, RoundingMode.CEILING)));
          this.bitCount = new LongAdder();
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jan 08 14:27:16 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

            }
    
            @Test
            @DisplayName("Should not modify buffer")
            void testWriteBytesWireFormatNoModification() {
                byte[] buffer = new byte[1024];
                byte[] originalBuffer = buffer.clone();
    
                echoResponse.writeBytesWireFormat(buffer, 0);
    
                assertArrayEquals(originalBuffer, buffer);
            }
        }
    
        @Nested
        @DisplayName("Read Bytes Wire Format Tests")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. docs/es/README.md

     - [OGNL](https://github.com/codelibs/fess-script-ognl)
    
    ## Información de Desarrollo
    
    ### Obtener el Código Fuente
    
    1. Clona el repositorio de Fess:
        ```
        $ cd ~/workspace
        $ git clone https://github.com/codelibs/fess.git
        ```
    
    2. Importa el repositorio clonado como un proyecto [Maven](https://maven.apache.org/) en [Eclipse](https://www.eclipse.org/eclipseide/) u otro IDE.
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Tue Nov 11 22:42:32 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            }
        }
    
        @Test
        public void testMemoryBasedCacheDefensiveCopy() throws IOException {
            byte[] data = "Hello, World!".getBytes();
            byte[] originalData = data.clone();
            ContentCache cache = new ContentCache(data);
    
            // Modify the original array
            data[0] = 'X';
    
            // Verify that the cache's data is not affected
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/HandlerTest.java

        @BeforeEach
        void setUp() throws Exception {
            // Backup system properties to restore them after each test
            originalSystemProperties = (Properties) System.getProperties().clone();
            // Reset static state of the Handler class before each test for isolation
            resetHandlerState();
            handler = new Handler(mockCifsContext);
        }
    
        @AfterEach
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

            informationalResponses_ += response
          }
    
        public fun add100Continue(): Builder =
          apply {
            addInformationalResponse(MockResponse(code = 100))
          }
    
        public override fun clone(): Builder = build().newBuilder()
    
        public fun build(): MockResponse = MockResponse(this)
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/Config.java

        public static void load(final InputStream in) throws IOException {
            if (in != null) {
                prp.load(in);
            }
            try {
                prp.putAll((java.util.Map) System.getProperties().clone());
            } catch (final SecurityException se) {
                if (LogStream.level > 1) {
                    log.println("SecurityException: jcifs.smb1 will ignore System properties");
                }
            }
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. tests/hooks_test.go

    		t.Fatalf("Failed to query product, got error: %v", err)
    	}
    
    	var resultClone Product2
    	if err := DB.First(&resultClone, "name = ?", "Nice_clone").Error; err != nil {
    		t.Fatalf("Failed to find cloned product, got error: %v", err)
    	}
    
    	result.Price *= 2
    	result.Name += "_clone"
    	AssertObjEqual(t, result, resultClone, "Price", "Name")
    
    	DB.Model(&result).Update("Price", 500)
    	var result2 Product2
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top