Skip to content

Commit 2831562

Browse files
committed
Improve Javadoc for a number of version parsing methods.
1 parent 53e2d55 commit 2831562

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [unreleased]
99

10+
### Added
11+
12+
- Improved Javadoc for a number of version parsing methods.
13+
1014
## [5.0.0] - 2024-10-25
1115

1216
### Changed

src/main/java/org/cthing/versionparser/gem/GemVersionScheme.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ private GemVersionScheme() {
4040
}
4141

4242
/**
43-
* Parses a RubyGems version.
43+
* Parses a RubyGems version. Refer to the {@link GemVersion} class for detailed information about Gem version
44+
* numbers.
4445
*
4546
* @param version Version to parse
4647
* @return Version object corresponding to the specified version string.

src/main/java/org/cthing/versionparser/gradle/GradleVersionScheme.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ private GradleVersionScheme() {
113113
}
114114

115115
/**
116-
* Parses a Gradle artifact version.
116+
* Parses a Gradle artifact version. Refer to the {@link GradleVersion} class and
117+
* <a href="https://docs.gradle.org/current/userguide/single_versions.html">Declaring Versions and Ranges</a>
118+
* in the Gradle User Guide for detailed information about Gradle's interpretation of version numbers.
117119
*
118120
* @param version Version to parse
119121
* @return Version object corresponding to the specified version string.

src/main/java/org/cthing/versionparser/maven/MvnVersionScheme.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ private MvnVersionScheme() {
4747
}
4848

4949
/**
50-
* Parses a Maven artifact version.
50+
* Parses a Maven artifact version. A Maven version consists of almost any combination of digits, letters, periods
51+
* and dashes (e.g. 1, 1.0.0, a, 1.0b, 1.0-alpha). Semantic Versions are valid Maven versions, but the converse
52+
* is not true. Refer to the {@link MvnVersion} class and the
53+
* <a href="https://maven.apache.org/pom.html#Version_Order_Specification">Maven Version Ordering Specification</a>
54+
* for a detailed explanation of Maven version numbers and their relationships.
5155
*
5256
* @param version Version to parse
5357
* @return Version object corresponding to the specified version string.

0 commit comments

Comments
 (0)