Skip to content

StorageManager tech debt: raw types and unchecked casts - #14560

Open
DaanHoogland wants to merge 1 commit into
ghi12316-storage-exceptionsfrom
ghi12316-storage-rawtypes
Open

DaanHoogland wants to merge 1 commit into
ghi12316-storage-exceptionsfrom
ghi12316-storage-rawtypes

storage: remove raw types and unchecked casts

585204c
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 6, 2026 in 3m 37s

Quality Gate failed

Failed conditions
38.5% Coverage on New Code (required ≥ 40%)
C Reliability Rating on New Code (required ≥ B)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 1576 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Fix this access that will throw a NullPointerException when executed.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaGxqB49l1v1LY0xCirK&open=AaGxqB49l1v1LY0xCirK&pullRequest=14560

Check failure on line 103 in api/src/main/java/org/apache/cloudstack/api/command/admin/storage/CreateStoragePoolCmd.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove usage of generic wildcard type.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaGxqByWl1v1LY0xCirI&open=AaGxqByWl1v1LY0xCirI&pullRequest=14560

Check failure on line 673 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "details" 6 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaGxqB49l1v1LY0xCirJ&open=AaGxqB49l1v1LY0xCirJ&pullRequest=14560

Check failure on line 134 in api/src/main/java/org/apache/cloudstack/api/command/admin/storage/UpdateStoragePoolCmd.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove usage of generic wildcard type.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaGxqBqql1v1LY0xCirH&open=AaGxqBqql1v1LY0xCirH&pullRequest=14560