mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
findbugs: String.split() will not return nulls by contract
(cherry picked from commit 7b105917584da7cc0ad4cd9a3e6391c6ae433c78) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
031d7a9c43
commit
6e87337d52
@ -868,7 +868,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||||||
if (cpuFeatures != null) {
|
if (cpuFeatures != null) {
|
||||||
_cpuFeatures = new ArrayList<String>();
|
_cpuFeatures = new ArrayList<String>();
|
||||||
for (String feature: cpuFeatures.split(" ")) {
|
for (String feature: cpuFeatures.split(" ")) {
|
||||||
if (feature != null || !feature.isEmpty()) {
|
if (!feature.isEmpty()) {
|
||||||
_cpuFeatures.add(feature);
|
_cpuFeatures.add(feature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user