cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject git commit: updated refs/heads/volume-upload to 3e594c4
Date Fri, 19 Dec 2014 07:16:11 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/volume-upload 9bb6cf845 -> 3e594c4e4


volume upload: removed unused variables


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

Branch: refs/heads/volume-upload
Commit: 3e594c4e4f91271e4bfe60497163c62cfa466a83
Parents: 9bb6cf8
Author: Rajani Karuturi <rajanikaruturi@gmail.com>
Authored: Fri Dec 19 12:44:56 2014 +0530
Committer: Rajani Karuturi <rajanikaruturi@gmail.com>
Committed: Fri Dec 19 12:44:56 2014 +0530

----------------------------------------------------------------------
 server/src/com/cloud/storage/VolumeApiServiceImpl.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e594c4e/server/src/com/cloud/storage/VolumeApiServiceImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
index 5f15e3a..5f90f81 100644
--- a/server/src/com/cloud/storage/VolumeApiServiceImpl.java
+++ b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
@@ -19,7 +19,6 @@ package com.cloud.storage;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -320,10 +319,9 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
          /*
           * encoded metadata using the post upload config ssh key
           */
-        final List<String> fieldExclusions = Arrays.asList("s_logger");
         Gson gson = new GsonBuilder().setExclusionStrategies(new ExclusionStrategy() {
             @Override public boolean shouldSkipField(FieldAttributes f) {
-                return f.getDeclaringClass() == Logger.class;
+                return f.getDeclaredType().getClass().isInstance(Logger.class);
             }
             @Override public boolean shouldSkipClass(Class<?> clazz) {
                 return false;


Mime
View raw message