cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to 7b10591
Date Wed, 29 Apr 2015 14:07:46 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 97e4fbc29 -> 7b1059175


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

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7b105917
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7b105917
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7b105917

Branch: refs/heads/master
Commit: 7b105917584da7cc0ad4cd9a3e6391c6ae433c78
Parents: 97e4fbc
Author: Daan Hoogland <dhoogland@schubergphilis.com>
Authored: Wed Apr 29 16:07:38 2015 +0200
Committer: Daan Hoogland <dhoogland@schubergphilis.com>
Committed: Wed Apr 29 16:07:38 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/7b105917/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 06b7614..6debb85 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
@@ -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);
                 }
             }


Mime
View raw message