Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getRestrictions (0.15 sec)

  1. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            List<Restriction> restrictions = spec.getRestrictions();
            assertEquals(1, restrictions.size(), CHECK_NUM_RESTRICTIONS);
    
            VersionRange version = VersionRange.createFromVersion("1.0");
            assertSame(version, VersionRange.createFromVersion("1.0")); // same instance from version cache
            restrictions = version.getRestrictions();
            assertEquals(0, restrictions.size(), CHECK_NUM_RESTRICTIONS);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.java

                return artifact.isSnapshot() ? SNAPSHOT : RELEASE;
            }
    
            VersionRange range = artifact.getVersionRange();
            if (range != null) {
                for (Restriction restriction : range.getRestrictions()) {
                    if (isSnapshot(restriction.getLowerBound()) || isSnapshot(restriction.getUpperBound())) {
                        return RELEASE_OR_SNAPSHOT;
                    }
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

            this.restrictions = restrictions;
        }
    
        public ArtifactVersion getRecommendedVersion() {
            return recommendedVersion;
        }
    
        public List<Restriction> getRestrictions() {
            return restrictions;
        }
    
        /**
         * @deprecated VersionRange is immutable, cloning is not useful and even more an issue against the cache
         * @return a clone
         */
        @Deprecated
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top