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 f584714
Date Fri, 26 Jun 2015 13:11:43 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 582687fb3 -> f5847147c


findbugs: serializable fields

Signed-off-by: Daan Hoogland <daan@onecht.net>

This closes #533


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

Branch: refs/heads/master
Commit: f5847147c0e8dfcd44b0c621e5932f8b3d5d394b
Parents: 582687f
Author: Daan Hoogland <daan@onecht.net>
Authored: Fri Jun 26 14:33:06 2015 +0200
Committer: Daan Hoogland <daan@onecht.net>
Committed: Fri Jun 26 15:11:16 2015 +0200

----------------------------------------------------------------------
 api/src/com/cloud/agent/api/to/LoadBalancerTO.java | 4 ++++
 utils/src/com/cloud/utils/Pair.java                | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f5847147/api/src/com/cloud/agent/api/to/LoadBalancerTO.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/agent/api/to/LoadBalancerTO.java b/api/src/com/cloud/agent/api/to/LoadBalancerTO.java
index 2bb1537..dffbc9e 100644
--- a/api/src/com/cloud/agent/api/to/LoadBalancerTO.java
+++ b/api/src/com/cloud/agent/api/to/LoadBalancerTO.java
@@ -311,6 +311,7 @@ public class LoadBalancerTO {
     }
 
     public static class CounterTO implements Serializable {
+        private static final long serialVersionUID = 2L;
         private final String name;
         private final String source;
         private final String value;
@@ -335,6 +336,7 @@ public class LoadBalancerTO {
     }
 
     public static class ConditionTO implements Serializable {
+        private static final long serialVersionUID = 2L;
         private final long threshold;
         private final String relationalOperator;
         private final CounterTO counter;
@@ -359,6 +361,7 @@ public class LoadBalancerTO {
     }
 
     public static class AutoScalePolicyTO implements Serializable {
+        private static final long serialVersionUID = 2L;
         private final long id;
         private final int duration;
         private final int quietTime;
@@ -401,6 +404,7 @@ public class LoadBalancerTO {
     }
 
     public static class AutoScaleVmProfileTO implements Serializable {
+        private static final long serialVersionUID = 2L;
         private final String zoneId;
         private final String domainId;
         private final String serviceOfferingId;

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f5847147/utils/src/com/cloud/utils/Pair.java
----------------------------------------------------------------------
diff --git a/utils/src/com/cloud/utils/Pair.java b/utils/src/com/cloud/utils/Pair.java
index 9deb896..73d3562 100644
--- a/utils/src/com/cloud/utils/Pair.java
+++ b/utils/src/com/cloud/utils/Pair.java
@@ -19,7 +19,10 @@
 
 package com.cloud.utils;
 
-public class Pair<T, U> {
+import java.io.Serializable;
+
+public class Pair<T, U> implements Serializable {
+    private static final long serialVersionUID = 2L;
     T t;
     U u;
 


Mime
View raw message