- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for selection (0.16 sec)
-
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
/* * We'd use assertThrows here, but that causes no exception to be thrown under Java 8, * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's * reflection implementation. */ try { new TypeToken<T>() {}; fail(); } catch (IllegalStateException expected) { } } public void testRawTypeIsCorrect() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.timeout; import static org.mockito.Mockito.verify; import com.google.common.collect.ImmutableList; import com.google.common.reflect.Reflection; import com.google.common.truth.FailureStrategy; import com.google.common.truth.StandardSubjectBuilder; import com.google.common.util.concurrent.ClosingFuture.AsyncClosingCallable;
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 75.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFuture.java
} catch (Exception // sneaky checked exception | Error atomicReferenceFieldUpdaterFailure) { // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause // getDeclaredField to throw a NoSuchFieldException when the field is definitely there. // For these users fallback to a suboptimal implementation, based on synchronized. This will
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 22 21:17:24 GMT 2024 - 63K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
* noted, but the initial table is a zero-length array. * * <p>This test may fail miserably on non-OpenJDK environments... */ @J2ktIncompatible @GwtIncompatible // reflection @AndroidIncompatible // relies on assumptions about OpenJDK public void testNewHashMapWithExpectedSize_wontGrow() throws Exception { // before jdk7u40: creates one-bucket table
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 16:06:01 GMT 2024 - 67.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
* noted, but the initial table is a zero-length array. * * <p>This test may fail miserably on non-OpenJDK environments... */ @J2ktIncompatible @GwtIncompatible // reflection @AndroidIncompatible // relies on assumptions about OpenJDK public void testNewHashMapWithExpectedSize_wontGrow() throws Exception { // before jdk7u40: creates one-bucket table
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 04 16:06:01 GMT 2024 - 64.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* ListenableFuture<Integer> faultTolerantFuture = Futures.catching( * fetchCounterFuture, FetchException.class, x -> 0, directExecutor()); * }</pre> * * <p>When selecting an executor, note that {@code directExecutor} is dangerous in some cases. See * the warnings the {@link MoreExecutors#directExecutor} documentation. * * @param input the primary input {@code Future}
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 59.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
/* * We'd use assertThrows here, but that causes no exception to be thrown under Java 8, * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's * reflection implementation. */ try { new TypeToken<T>() {}; fail(); } catch (IllegalStateException expected) { } } public void testRawTypeIsCorrect() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
* are <i>lazy</i>, which means that they only advance the backing iteration when absolutely * necessary. * * <p>See the Guava User Guide section on <a href= * "https://github.com/google/guava/wiki/CollectionUtilitiesExplained#iterables">{@code * Iterators}</a>. * * @author Kevin Bourrillion * @author Jared Levy * @since 2.0 */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 30 18:43:01 GMT 2024 - 51.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.timeout; import static org.mockito.Mockito.verify; import com.google.common.collect.ImmutableList; import com.google.common.reflect.Reflection; import com.google.common.truth.FailureStrategy; import com.google.common.truth.StandardSubjectBuilder; import com.google.common.util.concurrent.ClosingFuture.AsyncClosingCallable;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 74.7K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeToken.java
* It also provides additional utilities such as {@link #getTypes}, {@link #resolveType}, etc. * * <p>There are three ways to get a {@code TypeToken} instance: * * <ul> * <li>Wrap a {@code Type} obtained via reflection. For example: {@code * TypeToken.of(method.getGenericReturnType())}. * <li>Capture a generic type with a (usually anonymous) subclass. For example: * <pre>{@code * new TypeToken<List<String>>() {}
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jun 26 21:02:13 GMT 2023 - 53.6K bytes - Viewed (0)