You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pl...@apache.org on 2018/01/26 08:20:10 UTC

directory-kerby git commit: Fix the build failure.

Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 2b0dd7ced -> 05f72eb33


Fix the build failure.


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

Branch: refs/heads/trunk
Commit: 05f72eb33613a7a6df27eaf28955089c7cb83014
Parents: 2b0dd7c
Author: plusplusjiajia <ji...@intel.com>
Authored: Fri Jan 26 16:15:36 2018 +0800
Committer: plusplusjiajia <ji...@intel.com>
Committed: Fri Jan 26 16:15:36 2018 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/kerby/has/client/HasLoginModule.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/05f72eb3/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasLoginModule.java
----------------------------------------------------------------------
diff --git a/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasLoginModule.java b/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasLoginModule.java
index 8debda5..e222020 100644
--- a/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasLoginModule.java
+++ b/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasLoginModule.java
@@ -78,7 +78,7 @@ public class HasLoginModule implements LoginModule {
     private PrincipalName principal = null;
     private KerberosPrincipal kerbClientPrinc = null;
     private KerberosTicket kerbTicket = null;
-    private StringBuffer krb5PrincName = null;
+    private StringBuilder krb5PrincName = null;
     private boolean unboundServer = false;
 
     /**
@@ -157,10 +157,10 @@ public class HasLoginModule implements LoginModule {
             }
             String principalProperty = System.getProperty("sun.security.krb5.principal");
             if (principalProperty != null) {
-                krb5PrincName = new StringBuffer(principalProperty);
+                krb5PrincName = new StringBuilder(principalProperty);
             } else {
                 if (princName != null) {
-                    krb5PrincName = new StringBuffer(princName);
+                    krb5PrincName = new StringBuilder(princName);
                 }
             }