cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: updated refs/heads/4.5 to 6e87337
Date Wed, 29 Apr 2015 14:54:27 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.5 031d7a9c4 -> 6e87337d5


findbugs: String.split() will not return nulls by contract
(cherry picked from commit 7b105917584da7cc0ad4cd9a3e6391c6ae433c78)

Signed-off-by: Rohit Yadav <rohit.yadav@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/4.5
Commit: 6e87337d523f44a4b0d47d096910220114375996
Parents: 031d7a9
Author: Daan Hoogland <dhoogland@schubergphilis.com>
Authored: Wed Apr 29 16:07:38 2015 +0200
Committer: Rohit Yadav <rohit.yadav@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);
                 }
             }


Mime
View raw message