- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 93 for requireNonNull (0.19 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/Utils.java
public static Path getCanonicalPath(Path path) { requireNonNull(path, "path"); try { return path.toRealPath(); } catch (IOException e) { return getCanonicalPath(path.getParent()).resolve(path.getFileName()); } } @Nonnull public static Map<String, String> toMap(Properties properties) { requireNonNull(properties, "properties");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsule.java
private final Lookup lookup; public PlexusContainerCapsule(ClassLoader previousClassLoader, PlexusContainer plexusContainer) { this.previousClassLoader = requireNonNull(previousClassLoader, "previousClassLoader"); this.plexusContainer = requireNonNull(plexusContainer, "plexusContainer"); this.lookup = new DefaultLookup(plexusContainer); } @Override public Lookup getLookup() { return lookup;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.9K bytes - Viewed (0) -
compat/maven-toolchain-model/src/main/java/org/apache/maven/toolchain/model/BaseObject.java
import java.io.Serializable; import static java.util.Objects.requireNonNull; public abstract class BaseObject implements Serializable, Cloneable { protected transient ChildrenTracking childrenTracking; protected Object delegate; public BaseObject() {} public BaseObject(Object delegate, BaseObject parent) { this.delegate = requireNonNull(delegate, "delegate cannot be null");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/LegacyArtifactHandlerManager.java
import org.apache.maven.artifact.handler.DefaultArtifactHandler; import org.apache.maven.eventspy.AbstractEventSpy; import org.apache.maven.execution.ExecutionEvent; import static java.util.Objects.requireNonNull; /** */ @Named @Singleton public class LegacyArtifactHandlerManager extends AbstractEventSpy { private final Map<String, ArtifactHandler> artifactHandlers;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.4K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseInvokerRequest.java
this.parserRequest = requireNonNull(parserRequest); this.cwd = requireNonNull(cwd); this.installationDirectory = requireNonNull(installationDirectory); this.userHomeDirectory = requireNonNull(userHomeDirectory); this.userProperties = requireNonNull(userProperties); this.systemProperties = requireNonNull(systemProperties);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.3K bytes - Viewed (0) -
guava/src/com/google/common/graph/EndpointPairIterator.java
@Override @CheckForNull protected EndpointPair<N> computeNext() { while (true) { if (successorIterator.hasNext()) { // requireNonNull is safe because successorIterator is empty until we set this.node. return EndpointPair.ordered(requireNonNull(node), successorIterator.next()); } if (!advance()) { return endOfData(); } } } } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 09 17:31:04 UTC 2021 - 5K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelWriter.java
public class DefaultModelWriter implements ModelWriter { @Override public void write(File output, Map<String, Object> options, Model model) throws IOException { Objects.requireNonNull(output, "output cannot be null"); Objects.requireNonNull(model, "model cannot be null"); output.getParentFile().mkdirs(); write(new XmlStreamWriter(Files.newOutputStream(output.toPath())), options, model); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/Platform.java
* limitations under the License. */ package com.google.common.testing; import static com.google.common.base.Preconditions.checkNotNull; import static java.util.Objects.requireNonNull; import com.google.common.annotations.GwtCompatible; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Aug 23 12:13:11 UTC 2023 - 1.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SparseImmutableTable.java
C columnKey = cell.getColumnKey(); V value = cell.getValue(); /* * These requireNonNull calls are safe because we construct the maps to hold all the provided * cells. */ cellRowIndices[i] = requireNonNull(rowIndex.get(rowKey)); Map<C, V> thisRow = requireNonNull(rows.get(rowKey)); cellColumnInRowIndices[i] = thisRow.size(); V oldValue = thisRow.put(columnKey, value);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 5.6K bytes - Viewed (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/DefaultSettingsWriter.java
public class DefaultSettingsWriter implements SettingsWriter { @Override public void write(File output, Map<String, Object> options, Settings settings) throws IOException { Objects.requireNonNull(output, "output cannot be null"); Objects.requireNonNull(settings, "settings cannot be null"); output.getParentFile().mkdirs(); write(Files.newOutputStream(output.toPath()), options, settings); } @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.8K bytes - Viewed (0)