Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for checkScope (0.15 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactScopeEnum.java

        }
    
        /**
         * Helper method to simplify null processing
         *
         * @param scope a scope or {@code null}
         * @return the provided scope or DEFAULT_SCOPE
         */
        public static ArtifactScopeEnum checkScope(ArtifactScopeEnum scope) {
            return scope == null ? DEFAULT_SCOPE : scope;
        }
    
        /**
         *
         * @return unsafe String representation of this scope.
         */
        public String getScope() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

                        if (v == 0) {
                            if (compareScope) {
                                String s1 = ArtifactScopeEnum.checkScope(md.artifactScope)
                                        .getScope();
                                String s2 = ArtifactScopeEnum.checkScope(vmd.artifactScope)
                                        .getScope();
                                return s1.compareTo(s2);
                            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphEdge.java

                MetadataGraphEdge e = (MetadataGraphEdge) o;
    
                return objectsEqual(version, e.version)
                        && ArtifactScopeEnum.checkScope(scope)
                                .getScope()
                                .equals(ArtifactScopeEnum.checkScope(e.scope).getScope())
                        && depth == e.depth;
            }
            return false;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataTreeNode.java

        public MetadataTreeNode(ArtifactMetadata md, MetadataTreeNode parent, boolean resolved, ArtifactScopeEnum scope) {
            if (md != null) {
                md.setArtifactScope(ArtifactScopeEnum.checkScope(scope));
                md.setResolved(resolved);
            }
    
            this.md = md;
            this.parent = parent;
        }
        // ------------------------------------------------------------------------
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/ClasspathContainer.java

        // -------------------------------------------------------------------------------------------
        public ClasspathContainer(ArtifactScopeEnum scope) {
            this.scope = ArtifactScopeEnum.checkScope(scope);
        }
    
        // -------------------------------------------------------------------------------------------
        public ClasspathContainer(List<ArtifactMetadata> classpath, ArtifactScopeEnum scope) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

                // edge case - single vertex graph
                if (vertices.size() == 1) {
                    return new MetadataGraph(entry);
                }
    
                final ArtifactScopeEnum requestedScope = ArtifactScopeEnum.checkScope(scope);
    
                MetadataGraph res = new MetadataGraph(vertices.size());
                res.setVersionedVertices(false);
                res.setScopedVertices(false);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top