Skip to content

Commit 7b10591

Browse files
author
Daan Hoogland
committed
findbugs: String.split() will not return nulls by contract
1 parent 97e4fbc commit 7b10591

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ public boolean configure(String name, Map<String, Object> params) throws Configu
867867
if (cpuFeatures != null) {
868868
_cpuFeatures = new ArrayList<String>();
869869
for (String feature: cpuFeatures.split(" ")) {
870-
if (feature != null || !feature.isEmpty()) {
870+
if (!feature.isEmpty()) {
871871
_cpuFeatures.add(feature);
872872
}
873873
}

0 commit comments

Comments
 (0)