You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2015/05/07 16:05:04 UTC
[26/50] [abbrv] git commit: updated refs/heads/master to 1c408de
findbugs: String.split() will not return nulls by contract
(cherry picked from commit 7b105917584da7cc0ad4cd9a3e6391c6ae433c78)
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6e87337d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6e87337d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6e87337d
Branch: refs/heads/master
Commit: 6e87337d523f44a4b0d47d096910220114375996
Parents: 031d7a9
Author: Daan Hoogland <dh...@schubergphilis.com>
Authored: Wed Apr 29 16:07:38 2015 +0200
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Wed Apr 29 16:54:19 2015 +0200
----------------------------------------------------------------------
.../cloud/hypervisor/kvm/resource/LibvirtComputingResource.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6e87337d/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
index 2f5202b..ef50e02 100755
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
@@ -868,7 +868,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);
}
}