Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
Back to top