Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 180 for requireNonNull (0.16 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/type/DefaultType.java

                String extension,
                String classifier,
                boolean includesDependencies,
                PathType... pathTypes) {
            this.id = requireNonNull(id, "id");
            this.language = requireNonNull(language, "language");
            this.extension = requireNonNull(extension, "extension");
            this.classifier = classifier;
            this.includesDependencies = includesDependencies;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. 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 = new InputSource(input.toString());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifactHandler.java

            this.classifier = classifier;
            this.extension = requireNonNull(extension);
            this.packaging = requireNonNull(packaging);
        }
    
        @Override
        public String getClassifier() {
            return classifier;
        }
    
        @Override
        public String getDirectory() {
            return null;
        }
    
        @Override
        public String getExtension() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/Platform.java

    @ElementTypesAreNonnullByDefault
    final class Platform {
      private Platform() {}
    
      /** Returns a thread-local 1024-char array. */
      static char[] charBufferFromThreadLocal() {
        // requireNonNull accommodates Android's @RecentlyNullable annotation on ThreadLocal.get
        return requireNonNull(DEST_TL.get());
      }
    
      /**
       * A thread-local destination buffer to keep us from creating new buffers. The starting size is
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            requireNonNull(parserRequest);
    
            LocalContext context = new LocalContext(parserRequest);
    
            // the basics
            context.cwd = requireNonNull(getCwd(context));
            context.installationDirectory = requireNonNull(getInstallationDirectory(context));
            context.userHomeDirectory = requireNonNull(getUserHomeDirectory(context));
    
            // top/root
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. compat/maven-repository-metadata/src/main/java/org/apache/maven/artifact/repository/metadata/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
    - 2.1K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/ExtensibleEnums.java

                super(id);
                this.projectScope = Objects.requireNonNull(projectScope);
                this.dependencyScopes =
                        Collections.unmodifiableSet(new HashSet<>(Arrays.asList(Objects.requireNonNull(dependencyScopes))));
            }
    
            @Override
            public ProjectScope projectScope() {
                return projectScope;
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Jul 10 20:52:34 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/aether/MavenInstaller.java

        @Inject
        MavenInstaller(DefaultInstaller installer, ConsumerPomArtifactTransformer consumerPomArtifactTransformer) {
            this.installer = requireNonNull(installer);
            this.consumerPomArtifactTransformer = requireNonNull(consumerPomArtifactTransformer);
        }
    
        @Override
        public InstallResult install(RepositorySystemSession session, InstallRequest request) throws InstallationException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

            Objects.requireNonNull(file, "file cannot be null");
            return read(file.toPath(), options);
        }
    
        @Override
        public org.apache.maven.model.Model read(Path path, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(path, "path cannot be null");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/ProtoLookup.java

            public ProtoLookup build() {
                return new ProtoLookup(components);
            }
    
            public <T> Builder addMapping(Class<T> type, T component) {
                requireNonNull(type, "type");
                requireNonNull(component, "component");
                if (components.put(type, component) != null) {
                    throw new IllegalStateException("Duplicate mapping for type: " + type.getName());
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top