- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getRecommendedVersion (0.19 sec)
-
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java
assertNull(range.getRecommendedVersion(), CHECK_VERSION_RECOMMENDATION); assertFalse(range.isSelectedVersionKnown(artifact), CHECK_SELECTED_VERSION_KNOWN); assertNull(range.getSelectedVersion(artifact), CHECK_SELECTED_VERSION); range = VersionRange.createFromVersionSpec("1.0"); assertEquals("1.0", range.getRecommendedVersion().toString(), CHECK_VERSION_RECOMMENDATION);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 44.3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/VersionConstraint.java
* @since 4.0.0 */ @Experimental public interface VersionConstraint { /** * Returns the range of this constraint, or {@code null} if none. * <p> * Note: only one, this method or {@link #getRecommendedVersion()} method must return non-{@code null} value. */ @Nullable VersionRange getVersionRange(); /** * Returns the recommended version of this constraint, or {@code null} if none. * <p>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Tue Aug 27 21:13:34 UTC 2024 - 2.5K bytes - Viewed (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java
VersionConstraint c = versionParser.parseVersionConstraint("1.0"); assertEquals("1.0", c.getRecommendedVersion().toString()); assertTrue(c.contains(versionParser.parseVersion("1.0"))); c = versionParser.parseVersionConstraint("[1.0]"); assertNull(c.getRecommendedVersion()); assertTrue(c.contains(versionParser.parseVersion("1.0")));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
} else if (version == null && restriction.getRecommendedVersion() != null && r.containsVersion(restriction.getRecommendedVersion())) { // use this if we can, but prefer the original if possible version = restriction.getRecommendedVersion(); } } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 19K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
selectVersionFromNewRangeIfAvailable(); } private void selectVersionFromNewRangeIfAvailable() { if ((versionRange != null) && (versionRange.getRecommendedVersion() != null)) { selectVersion(versionRange.getRecommendedVersion().toString()); } else { version = null; baseVersion = null; } } @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 14.6K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java
return null; } return new DefaultVersionRange(versionScheme, delegate.getRange()); } @Override public Version getRecommendedVersion() { if (delegate.getVersion() == null) { return null; } return new DefaultVersion(versionScheme, delegate.getVersion()); } @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.5K bytes - Viewed (0)