findbugs: String.split() will not return nulls by contract

This commit is contained in:
Daan Hoogland 2015-04-29 16:07:38 +02:00
parent 97e4fbc294
commit 7b10591758
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
if (cpuFeatures != null) {
_cpuFeatures = new ArrayList<String>();
for (String feature: cpuFeatures.split(" ")) {
if (feature != null || !feature.isEmpty()) {
if (!feature.isEmpty()) {
_cpuFeatures.add(feature);
}
}