Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 180 for requireNonNull (0.07 sec)

  1. 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)
  2. 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)
  3. 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)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                    Objects.requireNonNull(remoteRepositoryManager, "remoteRepositoryManager cannot be null");
            this.versionResolver = Objects.requireNonNull(versionResolver, "versionResolver cannot be null");
            this.versionRangeResolver = Objects.requireNonNull(versionRangeResolver, "versionRangeResolver cannot be null");
            this.artifactResolver = Objects.requireNonNull(artifactResolver, "artifactResolver cannot be null");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. android/guava/src/com/google/common/collect/RegularImmutableMap.java

          RegularImmutableMap<K, V> empty = (RegularImmutableMap<K, V>) EMPTY;
          return empty;
        } else if (n == 1) {
          // requireNonNull is safe because the first `2*n` elements have been filled in.
          checkEntryNotNull(
              requireNonNull(alternatingKeysAndValues[0]), requireNonNull(alternatingKeysAndValues[1]));
          return new RegularImmutableMap<K, V>(null, alternatingKeysAndValues, 1);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java

                    MessageBuilderFactory messageBuilderFactory) {
                this.command = requireNonNull(command, "command");
                this.commandName = requireNonNull(commandName, "commandName");
                this.args = requireNonNull(args, "args");
                this.logger = requireNonNull(logger, "logger");
                this.messageBuilderFactory = requireNonNull(messageBuilderFactory, "messageBuilderFactory");
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 04 12:23:10 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top