- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 180 for requireNonNull (0.09 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
} protected final ProtoLookup protoLookup; public LookupInvoker(ProtoLookup protoLookup) { this.protoLookup = requireNonNull(protoLookup); } @Override public int invoke(R invokerRequest) throws InvokerException { requireNonNull(invokerRequest); Properties oldProps = (Properties) System.getProperties().clone();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 38K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilderFactory.java
import org.apache.maven.model.superpom.SuperPomProvider; import org.apache.maven.model.validation.DefaultModelValidator; import org.apache.maven.model.validation.ModelValidator; import static java.util.Objects.requireNonNull; /** * A factory to create model builder instances when no dependency injection is available. Note: This class is
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 17.6K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 12.5K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RelocatedArtifact.java
String groupId, String artifactId, String classifier, String extension, String version, String message) { this.artifact = Objects.requireNonNull(artifact, "artifact cannot be null"); this.groupId = (groupId != null && !groupId.isEmpty()) ? groupId : null; this.artifactId = (artifactId != null && !artifactId.isEmpty()) ? artifactId : null;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.1K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/superpom/DefaultSuperPomProvider.java
this.modelProcessor = modelProcessor; } @Override public Model getSuperModel(String version) { return SUPER_MODELS.computeIfAbsent(Objects.requireNonNull(version), v -> { String resource = "/org/apache/maven/model/pom-" + v + ".xml"; InputStream is = getClass().getResourceAsStream(resource); if (is == null) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.3K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 10 20:36:34 UTC 2022 - 3.5K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 10 20:36:34 UTC 2022 - 3.5K bytes - Viewed (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/UrlSource.java
/** * Creates a new source backed by the specified URL. * * @param url The file, must not be {@code null}. */ public UrlSource(URL url) { this.url = Objects.requireNonNull(url, "url cannot be null"); this.hashCode = Objects.hashCode(url); } @Override public InputStream getInputStream() throws IOException { return url.openStream(); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.3K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/merge/MavenModelMerger.java
*/ public void merge( org.apache.maven.model.Model target, org.apache.maven.model.Model source, boolean sourceDominant, Map<?, ?> hints) { Objects.requireNonNull(target, "target cannot be null"); if (source == null) { return; } target.update(merge(target.getDelegate(), source.getDelegate(), sourceDominant, hints)); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
} @SuppressWarnings("unchecked") // we must carefully only allow Es to get in E elementData(int index) { /* * requireNonNull is safe as long as we're careful to call this method only with populated * indexes. */ return (E) requireNonNull(queue[index]); } @Override @CheckForNull public E peek() { return isEmpty() ? null : elementData(0); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 34.1K bytes - Viewed (0)