- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 81 for emulated (0.04 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
* exists but cannot be used for another exchange, it is closed and this returns null. */ private fun planReuseCallConnection(): ReusePlan? { // This may be mutated by releaseConnectionNoEvents()! val candidate = call.connection ?: return null // Make sure this connection is healthy & eligible for new exchanges. If it's no longer needed // then we're on the hook to close it.
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Oct 08 03:50:05 UTC 2025 - 12K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Closer.java
import org.jspecify.annotations.Nullable; /** * A {@link Closeable} that collects {@code Closeable} resources and closes them all when it is * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html" * >try-with-resources</a> statement in JDK6-compatible code. Code using this should beRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.3K bytes - Viewed (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java
when(mockFuture.actionGet(anyLong(), any(TimeUnit.class))).thenAnswer(invocation -> { int count = attemptCount.incrementAndGet(); if (count <= 5) { throw new RuntimeException("Simulated failure #" + count); } return "Success"; }); final String result = fesenClient.get(c -> mockFuture); assertEquals("Success", result);
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 08:44:44 UTC 2025 - 17K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Invokable.java
public final boolean trySetAccessible() { // We can't call accessibleObject.trySetAccessible since that was added in Java 9 and this code // should work on Java 8. So we emulate it this way. try { accessibleObject.setAccessible(true); return true; } catch (Exception e) { // sneaky checked exception return false; } }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 18.4K bytes - Viewed (0) -
guava/src/com/google/common/primitives/ImmutableIntArray.java
*/ public ImmutableIntArray build() { return count == 0 ? EMPTY : new ImmutableIntArray(array, 0, count); } } // Instance stuff here // The array is never mutated after storing in this field and the construction strategies ensure // it doesn't escape this class @SuppressWarnings("Immutable") private final int[] array; /*Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 14:49:24 UTC 2025 - 21.5K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
*/ public ImmutableLongArray build() { return count == 0 ? EMPTY : new ImmutableLongArray(array, 0, count); } } // Instance stuff here // The array is never mutated after storing in this field and the construction strategies ensure // it doesn't escape this class @SuppressWarnings("Immutable") private final long[] array; /*Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 14:49:24 UTC 2025 - 22K bytes - Viewed (0) -
guava/src/com/google/common/hash/BloomFilterStrategies.java
return new LockFreeBitArray(toPlainArray(data)); } /** * Combines the two BitArrays using bitwise OR. * * <p>NOTE: Because of the use of atomics, if the other LockFreeBitArray is being mutated while * this operation is executing, not all of those new 1's may be set in the final state of this * LockFreeBitArray. The ONLY guarantee provided is that all the bits that were set in the other
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jan 08 14:27:16 UTC 2025 - 10.7K bytes - Viewed (0) -
guava/src/com/google/common/io/CharSource.java
* Returns a view of the given character sequence as a {@link CharSource}. The behavior of the * returned {@code CharSource} and any {@code Reader} instances created by it is unspecified if * the {@code charSequence} is mutated while it is being read, so don't do that. * * @since 15.0 (since 14.0 as {@code CharStreams.asCharSource(String)}) */ public static CharSource wrap(CharSequence charSequence) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 08 18:35:13 UTC 2025 - 25.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSource.java
* Returns a view of the given character sequence as a {@link CharSource}. The behavior of the * returned {@code CharSource} and any {@code Reader} instances created by it is unspecified if * the {@code charSequence} is mutated while it is being read, so don't do that. * * @since 15.0 (since 14.0 as {@code CharStreams.asCharSource(String)}) */ public static CharSource wrap(CharSequence charSequence) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 08 18:35:13 UTC 2025 - 25.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
* * <p>For example, verify that calls to remove() actually removed the correct elements. * * @param elements the expected elements passed to the constructor, as mutated by {@code * remove()}, {@code set()}, and {@code add()} calls */ protected void verify(List<E> elements) {} /** Executes the test. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 20.8K bytes - Viewed (0)