- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 942 for Nullable (0.39 seconds)
-
guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java
import org.jspecify.annotations.Nullable; /** * Tests for {@code AbstractMapEntry}. * * @author Mike Bostock */ @GwtCompatible @NullMarked public class AbstractMapEntryTest extends TestCase { private static final @Nullable String NK = null; private static final @Nullable Integer NV = null; private static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> entry( K key, V value) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.1K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinNullabilityChangesTest.kt
"Constructor com.example.Source(java.lang.String): Parameter 0 nullability changed from non-nullable to nullable", "Method com.example.SourceKt.invoke(com.example.Source,java.lang.String): Parameter 1 nullability changed from non-nullable to nullable" ) assertHasNoInformation() } }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Feb 04 09:55:47 GMT 2025 - 5K bytes - Click Count (0) -
guava/src/com/google/common/cache/LocalCache.java
int nextSegmentIndex; int nextTableIndex; @Nullable Segment<K, V> currentSegment; @Nullable AtomicReferenceArray<ReferenceEntry<K, V>> currentTable; @Nullable ReferenceEntry<K, V> nextEntry; @Nullable WriteThroughEntry nextExternal; @Nullable WriteThroughEntry lastReturned; HashIterator() { nextSegmentIndex = segments.length - 1;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 11 19:35:11 GMT 2025 - 148.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link Functions}. * * @author Mike Bostock * @author Vlad Patryshev */ @GwtCompatible @NullMarked public class FunctionsTest extends TestCase { public void testIdentity_same() { Function<@Nullable String, @Nullable String> identity = Functions.identity(); assertThat(identity.apply(null)).isNull();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 16K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableList.java
import java.util.List; import org.jspecify.annotations.Nullable; /** * GWT emulated version of {@link ImmutableList}. TODO(cpovirk): more doc * * @author Hayward Chan */ abstract class ForwardingImmutableList<E> extends ImmutableList<E> { ForwardingImmutableList() {} abstract List<E> delegateList(); @Override public int indexOf(@Nullable Object object) { return delegateList().indexOf(object);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 2.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java
private static final AtomicReferenceFieldUpdater<Waiter, @Nullable Thread> waiterThreadUpdater = AtomicReferenceFieldUpdater.<Waiter, @Nullable Thread>newUpdater( Waiter.class, Thread.class, "thread"); private static final AtomicReferenceFieldUpdater<Waiter, @Nullable Waiter> waiterNextUpdater = AtomicReferenceFieldUpdater.<Waiter, @Nullable Waiter>newUpdater( Waiter.class, Waiter.class, "next");
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 33.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; @GwtCompatible @NullMarked public class Helpers { // Clone of Objects.equals static boolean equal(@Nullable Object a, @Nullable Object b) { return a == b || (a != null && a.equals(b)); } // Clone of Lists.newArrayList public static <E extends @Nullable Object> List<E> copyToList(Iterable<? extends E> elements) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 17.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ForwardingMapEntry.java
* methods that they depend on are thread-safe. * * @author Mike Bostock * @author Louis Wasserman * @since 2.0 */ @GwtCompatible public abstract class ForwardingMapEntry<K extends @Nullable Object, V extends @Nullable Object> extends ForwardingObject implements Map.Entry<K, V> { // TODO(lowasser): identify places where thread safety is actually lost /** Constructor for use by subclasses. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
* a good policy, especially because, in order for the test to pass, the * parameter must be misleadingly annotated as @Nullable. I suspect that * we'll want to remove @Nullable, add an eager checkNotNull, and loosen up * testRemove_nullAllowed. */ @CanIgnoreReturnValue @Override public int remove(@Nullable Object element, int occurrences) { if (occurrences == 0) { return count(element); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Dec 08 22:42:14 GMT 2025 - 22.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
* * 2. `other[size] = null` is unsound. We could "fix" this by requiring callers to pass in an * array with a nullable element type. But probably they usually want an array with a non-nullable * type. That said, we could *accept* a `@Nullable T[]` (which, given that we treat arrays as * covariant, would still permit a plain `T[]`) and return a plain `T[]`. But of course that would
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 21.4K bytes - Click Count (0)