- Sort Score
- Result 10 results
- Languages All
Results 341 - 350 of 887 for nullable (0.32 sec)
-
android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicBoolean; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link GcFinalization}. * * @author Martin Buchholz * @author mike nonemacher */ @AndroidIncompatible // depends on details of gc @NullUnmarked
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.9K bytes - Viewed (0) -
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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Function.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Apr 15 22:14:00 UTC 2025 - 2.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/RequestTrace.java
* object being processed or any application-specific state information. May be null if no * additional data is needed. */ public record RequestTrace(@Nullable String context, @Nullable RequestTrace parent, @Nullable Object data) { public static final String CONTEXT_PLUGIN = "plugin"; public static final String CONTEXT_PROJECT = "project"; public static final String CONTEXT_BOOTSTRAP = "bootstrap";
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 29 08:17:07 UTC 2025 - 2.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TransposedTableTest.java
import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Test cases for {@link Tables#transpose}. * * @author Jared Levy */ @GwtCompatible @NullMarked public class TransposedTableTest extends AbstractTableTest<Character> { @Override protected Table<String, Integer, Character> create(@Nullable Object... data) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/PeekingIterator.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import com.google.errorprone.annotations.DoNotMock; import java.util.Iterator; import java.util.NoSuchElementException; import org.jspecify.annotations.Nullable; /** * An iterator that supports a one-element lookahead while iterating. * * <p>See the Guava User Guide article on <a href=
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/BiMap.java
* "https://github.com/google/guava/wiki/NewCollectionTypesExplained#bimap">{@code BiMap}</a>. * * @author Kevin Bourrillion * @since 2.0 */ @GwtCompatible public interface BiMap<K extends @Nullable Object, V extends @Nullable Object> extends Map<K, V> { // Modification Operations /** * {@inheritDoc} * * @throws IllegalArgumentException if the given value is already bound to a different key in this
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 17:32:30 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/StringCatcher.java
*/ @NullUnmarked public class StringCatcher { private final List<String> events = new ArrayList<>(); @Subscribe public void hereHaveAString(@Nullable String string) { events.add(string); } public void methodWithoutAnnotation(@Nullable String string) { Assert.fail("Event bus must not call methods without @Subscribe!"); } public List<String> getEvents() { return events; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 1.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
} @Override @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations public <T extends @Nullable Object> T[] toArray(T[] other) { return ObjectArrays.toArrayImpl(this, other); } @Override public boolean contains(@Nullable Object object) { try { // This set never contains null. We need to explicitly check here
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 15.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java
// @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") @NullMarked public class MultimapSizeTester<K extends @Nullable Object, V extends @Nullable Object> extends AbstractMultimapTester<K, V, Multimap<K, V>> { public void testSize() { int expectedSize = getNumElements(); Multimap<K, V> multimap = multimap();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.8K bytes - Viewed (0)