- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 781 for cloned (0.04 seconds)
-
src/test/java/jcifs/smb/CredentialsInternalTest.java
} @Test @DisplayName("clone returns a distinct copy with same properties") void clone_returns_copy() { // Arrange Subject subject = new Subject(); TestCredentials creds = new TestCredentials("A", true, false, subject, false); // Act TestCredentials copy = creds.clone(); // AssertCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
char[] plaintext = "SamePassword".toCharArray(); // Encrypt twice byte[] encrypted1 = storage.encryptCredentials(plaintext.clone()); byte[] encrypted2 = storage.encryptCredentials(plaintext.clone()); // Should produce different ciphertexts due to random IV assertFalse(Arrays.equals(encrypted1, encrypted2), "Different encryptions should produce different ciphertexts");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
object : EventListener() { var socket: SSLSocket? = null var closed = false override fun connectionAcquired( call: Call, connection: Connection, ) { socket = connection.socket() as SSLSocket } override fun requestHeadersStart(call: Call) { if (closed) { throw IOException("fake socket failure") } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 11:54:15 GMT 2026 - 10.7K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/management/DefaultDependencyManagementInjector.java
if (tgt.isEmpty()) { List<Exclusion> src = source.getExclusions(); for (Exclusion element : src) { Exclusion clone = element.clone(); target.addExclusion(clone); } } } }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 3.7K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Closeables.java
* * @param inputStream the input stream to be closed, or {@code null} in which case this method * does nothing * @since 17.0 */ public static void closeQuietly(@Nullable InputStream inputStream) { try { close(inputStream, true); } catch (IOException impossible) { throw new AssertionError(impossible); } } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 5.1K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/hash/MessageDigestCreationBenchmark.java
retValue ^= MessageDigest.getInstance(algorithm).getDigestLength(); } return retValue; } @Benchmark int clone(int reps) throws Exception { int retValue = 0; for (int i = 0; i < reps; i++) { retValue ^= ((MessageDigest) md.clone()).getDigestLength(); } return retValue; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.6K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileInjector.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
// Close and verify subsequent calls throw handle.close(); CIFSException ex1 = assertThrows(CIFSException.class, handle::getInput, "getInput after close must throw"); assertTrue(ex1.getMessage().contains("Already closed")); CIFSException ex2 = assertThrows(CIFSException.class, handle::getOutput, "getOutput after close must throw");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 16.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt
* must close this body by calling any of the following methods: * * * `Response.close()` * * `Response.body().close()` * * `Response.body().source().close()` * * `Response.body().charStream().close()` * * `Response.body().byteStream().close()` * * `Response.body().bytes()` * * `Response.body().string()` * * There is no benefit to invoking multiple `close()` methods for the same response body. *
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue May 27 14:51:25 GMT 2025 - 11.6K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/PropertiesUtil.java
/** * Do not instantiate. */ protected PropertiesUtil() { } /** * Wraps exception handling for {@link Properties#load(InputStream)}. * <p> * The input stream is not closed. * </p> * * @param props the property set (must not be {@literal null}) * @param in the input stream (must not be {@literal null}) */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 7.9K bytes - Click Count (0)