You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public void setVersion(final String pVersion, final boolean pSupported) {
final String[] numbers = pVersion.split("\\.");
// case when version is X.Y
if(numbers.length >= 2) {
this.versionMajor = Integer.parseInt(numbers[0]);
this.versionMinor = Integer.parseInt(numbers[1]);
// case when version is X.Y.Z
if(numbers.length >= 3) {
this.versionRevision = Integer.parseInt(numbers[2]);
// case when version is X.Y.Z.build
if(numbers.length >= 4) {
this.versionBuild = Integer.parseInt(numbers[3]);
}
}
}
this.supported = pSupported;
}
The text was updated successfully, but these errors were encountered:
Hi @zorikmostly
As I was working on this issue, I was not able to find any SonarQube release in SNAPSHOT.
Could you please tell me where you found yours ?
It'll help me make sure the fix will work in real conditions.
Hi @zorikzaqaryan
For the sake of simplicity, we changed the way the version was handled so this issue won't happen again.
The fix is merged in the dev branch and a new release may come soon.
Thanks for your feedback !
Hi @zorikzaqaryan For the sake of simplicity, we changed the way the version was handled so this issue won't happen again. The fix is merged in the dev branch and a new release may come soon. Thanks for your feedback !
Application is not working when sonarqube version is SNAPSHOT. The issue is coming from
this.versionRevision = Integer.parseInt(numbers[2]);
The text was updated successfully, but these errors were encountered: