-
Notifications
You must be signed in to change notification settings - Fork 2.9k
docs: clarify deprecation of RELEASE and LATEST version constants #11686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,10 +37,18 @@ | |||||||||||
| */ | ||||||||||||
| public interface Artifact extends Comparable<Artifact> { | ||||||||||||
|
|
||||||||||||
| @Deprecated(since = "4.0.0") | ||||||||||||
| /** | ||||||||||||
| * @deprecated since 3.0 | ||||||||||||
| * Use explicit version resolution instead of special version constants. | ||||||||||||
| */ | ||||||||||||
| @Deprecated(since = "3.0") | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Also, the Javadoc asterisks are misaligned — they should use
Suggested change
should be (if kept at all):
Suggested change
|
||||||||||||
| String RELEASE_VERSION = "RELEASE"; | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changing
Suggested change
|
||||||||||||
|
|
||||||||||||
| @Deprecated(since = "4.0.0") | ||||||||||||
| /** | ||||||||||||
| * @deprecated since 3.0 | ||||||||||||
| * Use a fixed version or an explicit version range instead of special version tokens. | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. never use version ranges |
||||||||||||
| */ | ||||||||||||
| @Deprecated(since = "3.0") | ||||||||||||
| String LATEST_VERSION = "LATEST"; | ||||||||||||
|
|
||||||||||||
| String SNAPSHOT_VERSION = "SNAPSHOT"; | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to duplicate the since parameter