- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 187 for requireNonNull (0.28 sec)
-
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java
@Named @Singleton public class DefaultToolchainsXmlFactory implements ToolchainsXmlFactory { @Override public PersistedToolchains read(@Nonnull XmlReaderRequest request) throws XmlReaderException { Objects.requireNonNull(request, "request"); Reader reader = request.getReader(); InputStream inputStream = request.getInputStream(); if (reader == null && inputStream == null) {
Java - Registered: Sun Mar 24 03:35:10 GMT 2024 - Last Modified: Thu Dec 07 20:05:02 GMT 2023 - 3.7K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java
import static java.util.Objects.requireNonNull; public class DefaultTransport implements Transport { private final URI baseURI; private final Transporter transporter; public DefaultTransport(URI baseURI, Transporter transporter) { this.baseURI = requireNonNull(baseURI); this.transporter = requireNonNull(transporter); } @Override
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 16:33:18 GMT 2024 - 5.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java
* * This read is guaranteed to get us the right value because we only set this once (here). * * requireNonNull is safe because either our compareAndSet succeeded or it failed because * another thread did it for us. */ seenExceptionsLocal = requireNonNull(seenExceptions); } return seenExceptionsLocal; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Dec 14 20:35:03 GMT 2023 - 8.5K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java
@Named @Singleton public class DefaultToolchainsXmlFactory implements ToolchainsXmlFactory { @Override public PersistedToolchains read(@Nonnull XmlReaderRequest request) throws XmlReaderException { Objects.requireNonNull(request, "request"); Reader reader = request.getReader(); InputStream inputStream = request.getInputStream(); if (reader == null && inputStream == null) {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 3.9K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/artifact/handler/DefaultArtifactHandler.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.artifact.handler; import static java.util.Objects.requireNonNull; /** */ public class DefaultArtifactHandler implements ArtifactHandler { private final String type; private String extension; private String classifier;
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Mar 01 17:18:13 GMT 2024 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
super.addAll(elements); return this; } @CanIgnoreReturnValue Builder<E> combine(Builder<E> other) { requireNonNull(impl); requireNonNull(other.impl); /* * For discussion of requireNonNull, see the comment on the field. * * (And I don't believe there's any situation in which we call x.combine(y) when x is a plain
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 35.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LinkedListMultimap.java
// requireNonNull is safe (under the conditions listed in the comment in the branch above). KeyList<K, V> keyList = requireNonNull(keyToKeyList.get(node.key)); keyList.count--; if (node.previousSibling == null) { // requireNonNull is safe because we checked that not *both* siblings were null. keyList.head = requireNonNull(node.nextSibling); } else {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Oct 13 14:11:58 GMT 2023 - 27.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
} private synchronized InputStream openInputStream() throws IOException { if (file != null) { return new FileInputStream(file); } else { // requireNonNull is safe because we always have either `file` or `memory`. requireNonNull(memory); return new ByteArrayInputStream(memory.getBuffer(), 0, memory.getCount()); } } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 8.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java
*/ package com.google.common.graph; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkState; import static java.util.Objects.requireNonNull; import java.util.Collections; import java.util.Map; import java.util.Set; import javax.annotation.CheckForNull; /** * A base implementation of {@link NetworkConnections} for undirected networks. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 26 17:43:39 GMT 2021 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableList.java
@Override @SuppressWarnings("unchecked") public E get(int index) { checkElementIndex(index, size); // requireNonNull is safe because we guarantee that the first `size` elements are non-null. return (E) requireNonNull(array[index]); } // TODO(lowasser): benchmark optimizations for equals() and see if they're worthwhile // redeclare to help optimizers with b/310253115
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 2.8K bytes - Viewed (0)