- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 218 for requireNonNull (0.06 sec)
-
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultArtifactManager.java
import org.apache.maven.impl.DefaultArtifact; import org.apache.maven.impl.InternalSession; import org.apache.maven.project.MavenProject; import org.eclipse.sisu.Typed; import static java.util.Objects.requireNonNull; /** * This implementation of {@code ArtifactManager} is explicitly bound to * both {@code ArtifactManager} and {@code Service} interfaces so that it can be retrieved using * {@link InternalSession#getAllServices()}.Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 16:01:38 UTC 2025 - 4.4K bytes - Viewed (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/DefaultSettingsReader.java
@Singleton @Deprecated(since = "4.0.0") public class DefaultSettingsReader implements SettingsReader { @Override public Settings read(File input, Map<String, ?> options) throws IOException { Objects.requireNonNull(input, "input cannot be null"); try (InputStream in = Files.newInputStream(input.toPath())) { InputSource source = InputSource.of(input.toString());Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:45:25 UTC 2025 - 3.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
canRemove = true; /* * requireNonNull is safe because occurrencesLeft starts at 0, forcing us to initialize * currentEntry above. After that, we never clear it. */ return requireNonNull(currentEntry).getKey(); } @Override public void remove() { checkRemove(canRemove); /* * requireNonNull is safe because canRemove is set to true only after we initializeRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 10.2K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java
protected final CommandLine commandLine; protected CommonsCliOptions(String source, CLIManager cliManager, CommandLine commandLine) { this.source = requireNonNull(source); this.cliManager = requireNonNull(cliManager); this.commandLine = requireNonNull(commandLine); } @Override public String source() { return source; } @OverrideRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Oct 08 07:36:42 UTC 2025 - 21.3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/BaseRequest.java
package org.apache.maven.api.services; import org.apache.maven.api.ProtoSession; import org.apache.maven.api.annotations.Experimental; import org.apache.maven.api.annotations.Nonnull; import static java.util.Objects.requireNonNull; /** * Base class for requests. * * @since 4.0.0 */ @Experimental abstract class BaseRequest<S extends ProtoSession> implements Request<S> { private final S session;
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 1.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeMultiset.java
switch (balanceFactor()) { case -2: // requireNonNull is safe because right must exist in order to get a negative factor. requireNonNull(right); if (right.balanceFactor() > 0) { right = right.rotateRight(); } return rotateLeft(); case 2: // requireNonNull is safe because left must exist in order to get a positive factor.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 34.3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilderRequest.java
import org.apache.maven.api.annotations.Nonnull; import org.apache.maven.api.annotations.NotThreadSafe; import org.apache.maven.api.annotations.Nullable; import static java.util.Objects.requireNonNull; /** * * @since 4.0.0 */ @Experimental public interface ToolchainsBuilderRequest extends Request<ProtoSession> { /** * Gets the installation Toolchains source. *
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 6.3K bytes - Viewed (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java
@Deprecated public FileSource(File file) { this(Objects.requireNonNull(file, "file cannot be null").toPath()); } /** * Creates a new source backed by the specified file. * * @param path The file, must not be {@code null}. * @since 4.0.0 */ public FileSource(Path path) { this.path = Objects.requireNonNull(path, "path cannot be null").toAbsolutePath();Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jan 15 18:51:29 UTC 2025 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java
// TODO(b/139735208): Figure out what to do when the factory returns null. requireNonNull(thread); if (nameFormat != null) { // requireNonNull is safe because we create `count` if (and only if) we have a nameFormat. thread.setName(format(nameFormat, requireNonNull(count).getAndIncrement())); } if (daemon != null) { thread.setDaemon(daemon);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:35:26 UTC 2025 - 9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectBuilderRequest.java
*/ @Nonnull static ProjectBuilderRequest build(@Nonnull Session session, @Nonnull Source source) { return builder() .session(requireNonNull(session, "session cannot be null")) .source(requireNonNull(source, "source cannot be null")) .build(); } /** * Creates a new ProjectBuilderRequest with the specified session and path. *Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 10 07:30:49 UTC 2025 - 11.7K bytes - Viewed (0)