- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 97 for nullTest (0.04 sec)
-
guava/src/com/google/common/collect/ImmutableMap.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 44.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/PreconditionsTest.java
* non-@Nullable parameter to trigger a NullPointerException. * * (We still define this empty method to keep PackageSanityTests from generating its own * automated nullness tests, which would fail.) */ } private static final Object IGNORE_ME = new Object() { @Override public String toString() { throw new AssertionFailedError();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/PreconditionsTest.java
* non-@Nullable parameter to trigger a NullPointerException. * * (We still define this empty method to keep PackageSanityTests from generating its own * automated nullness tests, which would fail.) */ } private static final Object IGNORE_ME = new Object() { @Override public String toString() { throw new AssertionFailedError();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashSet.java
} Set<E> delegate = delegateOrNull(); return (delegate != null) ? delegate.toArray() : Arrays.copyOf(requireElements(), size); } @CanIgnoreReturnValue @Override @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations public <T extends @Nullable Object> T[] toArray(T[] a) { if (needsAllocArrays()) { if (a.length > 0) { a[0] = null; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 23.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFuture.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 16K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
* * 2. Kotlin's Map type has a getOrDefault method that accepts and returns a "plain V," in * contrast to the "V?" type that we're using. As a result, Kotlin sees a conflict between the * nullness annotations in ImmutableMap and those in its own Map type. In response, it considers * the parameter and return type both to be platform types. As a result, Kotlin permits calls
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 41.2K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
return newView(sortedDelegate.tailMap(fromKey)); } public ImmutableSortedMap<K, V> tailMap(K fromKeyParam, boolean inclusive) { // Declare a "true" local variable so that the Checker Framework will infer nullness. K fromKey = fromKeyParam; checkNotNull(fromKey); if (!inclusive) { fromKey = higher(fromKey); if (fromKey == null) { return new Builder<K, V>(this.comparator).build(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 16.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* .testEquals(); // or testNulls(), testSerializable() etc. * </pre> * * @author Ben Yu * @since 14.0 */ @GwtIncompatible @J2ktIncompatible @NullUnmarked @SuppressWarnings("nullness") public final class ClassSanityTester { private static final Ordering<Invokable<?, ?>> BY_METHOD_NAME = new Ordering<Invokable<?, ?>>() { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
/** * LocalCache emulation for GWT. * * @param <K> the base key type * @param <V> the base value type * @author Charles Fry * @author Jon Donovan */ @NullUnmarked @SuppressWarnings("nullness") // TODO: b/384945891 - Remove after fixing checker. public class LocalCache<K, V> implements ConcurrentMap<K, V> { private static final int UNSET_INT = CacheBuilder.UNSET_INT;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableMap.java
Object result = get(hashTable, alternatingKeysAndValues, size, 0, key); /* * We can't simply cast the result of `RegularImmutableMap.get` to V because of a bug in our * nullness checker (resulting from https://github.com/jspecify/checker-framework/issues/8). */ if (result == null) { return null; } else { return (V) result; } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 22.5K bytes - Viewed (0)