- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 218 for requireNonNull (0.07 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/ClingSupport.java
import org.apache.maven.cling.invoker.logging.SystemLogger; import org.apache.maven.jline.JLineMessageBuilderFactory; import org.codehaus.plexus.classworlds.ClassWorld; import static java.util.Objects.requireNonNull; /** * The CLI "new-gen". */ public abstract class ClingSupport { static final String CORE_CLASS_REALM_ID = "plexus.core"; protected final ClassWorld classWorld;
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Feb 08 16:25:25 UTC 2025 - 3.6K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/providers/packaging/AbstractLifecycleMappingProvider.java
import org.apache.maven.lifecycle.mapping.Lifecycle; import org.apache.maven.lifecycle.mapping.LifecycleMapping; import org.apache.maven.lifecycle.mapping.LifecyclePhase; import static java.util.Objects.requireNonNull; /** * Base lifecycle mapping provider, ie per-packaging plugin bindings for {@code default} lifecycle. */ public abstract class AbstractLifecycleMappingProvider implements Provider<LifecycleMapping> {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sun Dec 22 12:24:35 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumBiMap.java
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); keyTypeOrObjectUnderJ2cl = (Class<K>) requireNonNull(stream.readObject()); valueTypeOrObjectUnderJ2cl = (Class<V>) requireNonNull(stream.readObject()); setDelegates( new EnumMap<>(keyTypeOrObjectUnderJ2cl), new EnumMap<>(valueTypeOrObjectUnderJ2cl)); Serialization.populateMap(this, stream);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 15:50:50 UTC 2025 - 6.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeMultimap.java
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); keyComparator = requireNonNull((Comparator<? super K>) stream.readObject()); valueComparator = requireNonNull((Comparator<? super V>) stream.readObject()); setMap(new TreeMap<K, Collection<V>>(keyComparator)); Serialization.populateMultimap(this, stream); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.5K bytes - Viewed (0) -
guava/src/com/google/common/eventbus/Dispatcher.java
@Override void dispatch(Object event, Iterator<Subscriber> subscribers) { checkNotNull(event); checkNotNull(subscribers); // requireNonNull accommodates Android's @RecentlyNullable annotation on ThreadLocal.get Queue<Event> queueForThread = requireNonNull(queue.get()); queueForThread.offer(new Event(event, subscribers)); if (!dispatching.get()) { dispatching.set(true); try {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/NullnessCasts.java
* types (or if the type is a non-variable type, like {@code String}), then code should almost * never use this method, preferring instead to call {@code requireNonNull} so as to benefit from * its runtime check. * * <p>An example use case for this method is in implementing an {@code Iterator<T>} whose {@code
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Aug 13 20:49:47 UTC 2025 - 3.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/NullnessCasts.java
* types (or if the type is a non-variable type, like {@code String}), then code should almost * never use this method, preferring instead to call {@code requireNonNull} so as to benefit from * its runtime check. * * <p>An example use case for this method is in implementing an {@code Iterator<T>} whose {@code
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Aug 13 20:49:47 UTC 2025 - 3.6K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/ImmutableValueGraph.java
private static <N, V> GraphConnections<N, V> connectionsOf(ValueGraph<N, V> graph, N node) { Function<N, V> successorNodeToValueFn = (N successorNode) -> // requireNonNull is safe because the endpoint pair comes from the graph. requireNonNull(graph.edgeValueOrDefault(node, successorNode, null)); return graph.isDirected() ? DirectedGraphConnections.ofImmutable(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFuture.java
*/ final void init() { /* * requireNonNull is safe because this is called from the constructor after `futures` is set but * before releaseResources could be called (because we have not yet set up any of the listeners * that could call it, nor exposed this Future for users to call cancel() on). */ requireNonNull(futures); // Corner case: List is empty.
Registered: Fri Dec 26 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/io/TempFileCreator.java
import static java.nio.file.attribute.AclEntryFlag.FILE_INHERIT; import static java.nio.file.attribute.AclEntryType.ALLOW; import static java.nio.file.attribute.PosixFilePermissions.asFileAttribute; import static java.util.Objects.requireNonNull; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ImmutableList;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 29 18:50:14 UTC 2025 - 11.8K bytes - Viewed (0)