Fix issues reported by Errorprone static analysis tool #12419
Quality Gate failed
Failed conditions
16.6% Coverage on New Code (required ≥ 40%)
Annotations
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pydrtO4BVYOIsYtk&open=AZu9pydrtO4BVYOIsYtk&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyhptO4BVYOIsYto&open=AZu9pyhptO4BVYOIsYto&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZwpi7ILZEm6eBsZcT4k&open=AZwpi7ILZEm6eBsZcT4k&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZwpi62dZEm6eBsZcT4j&open=AZwpi62dZEm6eBsZcT4j&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyX9tO4BVYOIsYtf&open=AZu9pyX9tO4BVYOIsYtf&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pygntO4BVYOIsYtl&open=AZu9pygntO4BVYOIsYtl&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Make this "public static hypervisorGuestOsMap" field final
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyODtO4BVYOIsYtT&open=AZu9pyODtO4BVYOIsYtT&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyXWtO4BVYOIsYtX&open=AZu9pyXWtO4BVYOIsYtX&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyc-tO4BVYOIsYti&open=AZu9pyc-tO4BVYOIsYti&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9py0LtO4BVYOIsYtr&open=AZu9py0LtO4BVYOIsYtr&pullRequest=12419
Check warning on line 259 in server/src/test/java/com/cloud/template/TemplateManagerImplTest.java
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9py0ttO4BVYOIsYts&open=AZu9py0ttO4BVYOIsYts&pullRequest=12419
Check warning on line 395 in server/src/test/java/com/cloud/vm/UserVmManagerTest.java
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyzBtO4BVYOIsYtq&open=AZu9pyzBtO4BVYOIsYtq&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyXKtO4BVYOIsYtW&open=AZu9pyXKtO4BVYOIsYtW&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pydqtO4BVYOIsYtj&open=AZu9pydqtO4BVYOIsYtj&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyJetO4BVYOIsYtR&open=AZu9pyJetO4BVYOIsYtR&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Make this member "protected".
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyODtO4BVYOIsYtU&open=AZu9pyODtO4BVYOIsYtU&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Make hypervisorGuestOsMap a static final constant or non-public and provide accessors if needed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyODtO4BVYOIsYtS&open=AZu9pyODtO4BVYOIsYtS&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pycltO4BVYOIsYtg&open=AZu9pycltO4BVYOIsYtg&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pygntO4BVYOIsYtm&open=AZu9pygntO4BVYOIsYtm&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyhptO4BVYOIsYtn&open=AZu9pyhptO4BVYOIsYtn&pullRequest=12419
Check warning on line 353 in server/src/test/java/com/cloud/vm/UserVmManagerTest.java
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyzBtO4BVYOIsYtp&open=AZu9pyzBtO4BVYOIsYtp&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyXKtO4BVYOIsYtV&open=AZu9pyXKtO4BVYOIsYtV&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pycltO4BVYOIsYth&open=AZu9pycltO4BVYOIsYth&pullRequest=12419
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Ignore" annotation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZu9pyX9tO4BVYOIsYta&open=AZu9pyX9tO4BVYOIsYta&pullRequest=12419