directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: Fix code analysis issue: 'kadmin' could be replaced by a local variable.
Date Tue, 05 Jan 2016 07:46:03 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk ddfc14efe -> 15253cd76


Fix code analysis issue: 'kadmin' could be replaced by a local variable.


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

Branch: refs/heads/trunk
Commit: 15253cd7635c96ef48d8c3693892dce5ffcfac1a
Parents: ddfc14e
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Tue Jan 5 15:53:01 2016 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Tue Jan 5 15:53:01 2016 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/15253cd7/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java
----------------------------------------------------------------------
diff --git a/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java b/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java
index f2e3ca9..bfb0d21 100644
--- a/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java
+++ b/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java
@@ -32,7 +32,6 @@ import java.io.File;
  * The mentioned Kerby KDC server implementation.
  */
 public class KerbyKdcServer extends KdcServer {
-    private LocalKadmin kadmin;
     public KerbyKdcServer(File confDir) throws KrbException {
         super(confDir);
         setInnerKdcImpl(new NettyKdcServerImpl(getKdcSetting()));
@@ -45,7 +44,7 @@ public class KerbyKdcServer extends KdcServer {
     public void init() throws KrbException {
         super.init();
 
-        kadmin = new LocalKadminImpl(getKdcSetting(), getIdentityService());
+        LocalKadmin kadmin = new LocalKadminImpl(getKdcSetting(), getIdentityService());
 
         kadmin.checkBuiltinPrincipals();
     }


Mime
View raw message