Skip to content

Commit

Permalink
Exclude upper-bound in version ranges when adding Package-imports
Browse files Browse the repository at this point in the history
This was done wrong in
#1007
  • Loading branch information
HannesWell committed Mar 22, 2024
1 parent db64ee8 commit 6e57aee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private static String getVersion(ExportPackageDescription desc) {
Version version = desc.getVersion();
if (version != null && !Version.emptyVersion.equals(version)) {
return new VersionRange(
"[" + version.getMajor() + "." + version.getMinor() + "," + (version.getMajor() + 1) + "]") //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$//$NON-NLS-4$
"[" + version.getMajor() + "." + version.getMinor() + "," + (version.getMajor() + 1) + ")") //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$//$NON-NLS-4$
.toString();
}
return null;
Expand Down

0 comments on commit 6e57aee

Please sign in to comment.