directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject [04/10] directory-kerby git commit: DIRKRB-401 Serializable classes serialVersionUID field missing. Contributed by Gerard Gagliano.
Date Thu, 20 Aug 2015 02:38:13 GMT
DIRKRB-401 Serializable classes serialVersionUID field missing. Contributed by Gerard Gagliano.


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

Branch: refs/heads/pkinit-support
Commit: d54038a2d31b839c7b0984de673dc20f60d8bd78
Parents: 9ea71a2
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Fri Aug 14 14:52:03 2015 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Fri Aug 14 14:52:03 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kerb/KrbErrorException.java     | 1 +
 .../src/main/java/org/apache/kerby/kerberos/kerb/KrbException.java | 1 +
 .../kerby/kerberos/kerb/identity/CacheableIdentityService.java     | 2 ++
 .../kerberos/kerb/identity/backend/MemoryIdentityBackend.java      | 2 ++
 .../apache/kerby/kerberos/kerb/server/KdcRecoverableException.java | 1 +
 5 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d54038a2/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbErrorException.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbErrorException.java
b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbErrorException.java
index 43eb887..56cdeff 100644
--- a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbErrorException.java
+++ b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbErrorException.java
@@ -22,6 +22,7 @@ package org.apache.kerby.kerberos.kerb;
 import org.apache.kerby.kerberos.kerb.spec.base.KrbError;
 
 public class KrbErrorException extends KrbException {
+    private static final long serialVersionUID = -6726737724490205771L;
     private KrbError krbError;
 
     public KrbErrorException(KrbError krbError) {

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d54038a2/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbException.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbException.java
b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbException.java
index ef61e61..bfe2513 100644
--- a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbException.java
+++ b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbException.java
@@ -20,6 +20,7 @@
 package org.apache.kerby.kerberos.kerb;
 
 public class KrbException extends Exception {
+    private static final long serialVersionUID = 7305497872367599428L;
     private KrbErrorCode errorCode;
 
     public KrbException(String message) {

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d54038a2/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/CacheableIdentityService.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/CacheableIdentityService.java
b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/CacheableIdentityService.java
index a9c59a1..8bd174a 100644
--- a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/CacheableIdentityService.java
+++ b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/CacheableIdentityService.java
@@ -53,6 +53,8 @@ public class CacheableIdentityService
     private void init() {
         Map<String, KrbIdentity> tmpMap =
                 new LinkedHashMap<String, KrbIdentity>(cacheSize) {
+                    private static final long serialVersionUID = -6911200685333503214L;
+
             @Override
             protected boolean removeEldestEntry(Map.Entry eldest) {
                 return size() > cacheSize;

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d54038a2/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
index c94a51d..38e47e7 100644
--- a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
+++ b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
@@ -42,6 +42,8 @@ public class MemoryIdentityBackend extends AbstractIdentityBackend {
     protected void doInitialize() {
         Map<String, KrbIdentity> tmpMap =
                 new LinkedHashMap<String, KrbIdentity>(storageSize) {
+                     private static final long serialVersionUID = 714064587685837472L;
+
                     @Override
                     protected boolean removeEldestEntry(Map.Entry eldest) {
                         return size() > storageSize;

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d54038a2/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcRecoverableException.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcRecoverableException.java
b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcRecoverableException.java
index 9f0a051..32d1e16 100644
--- a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcRecoverableException.java
+++ b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcRecoverableException.java
@@ -26,6 +26,7 @@ import org.apache.kerby.kerberos.kerb.spec.base.KrbError;
  * KDC side recoverable exception, where retrying will be made.
  */
 public class KdcRecoverableException extends KrbErrorException {
+    private static final long serialVersionUID = -3472169380126256193L;
 
     public KdcRecoverableException(KrbError krbError) {
         super(krbError);


Mime
View raw message