Skip to content

Commit 4a61b1f

Browse files
eclipse-pde-botlaeubi
authored andcommitted
Perform clean code of ui/org.eclipse.pde.ui
1 parent 7caca2d commit 4a61b1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/parts/PluginVersionPart.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private String getVersion(Object firstElement) {
125125

126126
/**
127127
* Gets the current upper bound from the existing version range, if any.
128-
*
128+
*
129129
* @return the current upper bound version, or null if none exists
130130
*/
131131
private Version getCurrentUpperBound() {
@@ -139,7 +139,7 @@ private Version getCurrentUpperBound() {
139139
* Computes the upper bound for a version range following OSGi semantic versioning.
140140
* If an existing upper bound is present, it will be adjusted based on the new lower bound's major version.
141141
* Otherwise, a new upper bound excluding the next major version is created.
142-
*
142+
*
143143
* @param newLowerBound the new lower bound version
144144
* @param existingUpperBound the existing upper bound (may be null)
145145
* @return the upper bound version (next major version as a string)
@@ -148,19 +148,19 @@ private String computeUpperBound(String newLowerBound, Version existingUpperBoun
148148
try {
149149
Version lowerVersion = Version.parseVersion(newLowerBound);
150150
int newMajor = lowerVersion.getMajor();
151-
151+
152152
if (existingUpperBound != null) {
153153
// Existing upper bound present - adjust it if major version changed
154154
int existingUpperMajor = existingUpperBound.getMajor();
155-
155+
156156
// If the new lower bound has the same major version as the existing upper bound,
157157
// keep the existing upper bound
158158
if (newMajor < existingUpperMajor) {
159159
return existingUpperBound.toString();
160160
}
161161
// If the new lower bound's major version changed, update to next major
162162
}
163-
163+
164164
// No existing upper bound or major version changed - compute next major version
165165
Version nextMajor = new Version(newMajor + 1, 0, 0);
166166
return nextMajor.toString();

0 commit comments

Comments
 (0)