directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject directory-kerby git commit: Fixing build
Date Fri, 05 Jan 2018 16:36:44 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 4410adf91 -> dc2e2f124


Fixing build


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

Branch: refs/heads/trunk
Commit: dc2e2f1249dc326c724b785983570fe5ee71a392
Parents: 4410adf
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Jan 5 16:36:36 2018 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Jan 5 16:36:36 2018 +0000

----------------------------------------------------------------------
 .../java/org/apache/kerby/has/common/spnego/AuthToken.java     | 2 +-
 .../org/apache/kerby/has/common/ssl/SSLHostnameVerifier.java   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/dc2e2f12/has-project/has-common/src/main/java/org/apache/kerby/has/common/spnego/AuthToken.java
----------------------------------------------------------------------
diff --git a/has-project/has-common/src/main/java/org/apache/kerby/has/common/spnego/AuthToken.java
b/has-project/has-common/src/main/java/org/apache/kerby/has/common/spnego/AuthToken.java
index 75b405e..aaf0080 100644
--- a/has-project/has-common/src/main/java/org/apache/kerby/has/common/spnego/AuthToken.java
+++ b/has-project/has-common/src/main/java/org/apache/kerby/has/common/spnego/AuthToken.java
@@ -111,7 +111,7 @@ public class AuthToken implements Principal {
    * Generates the token.
    */
   private void generateToken() {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     sb.append(USER_NAME).append("=").append(getUserName()).append(ATTR_SEPARATOR);
     sb.append(PRINCIPAL).append("=").append(getName()).append(ATTR_SEPARATOR);
     sb.append(TYPE).append("=").append(getType()).append(ATTR_SEPARATOR);

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/dc2e2f12/has-project/has-common/src/main/java/org/apache/kerby/has/common/ssl/SSLHostnameVerifier.java
----------------------------------------------------------------------
diff --git a/has-project/has-common/src/main/java/org/apache/kerby/has/common/ssl/SSLHostnameVerifier.java
b/has-project/has-common/src/main/java/org/apache/kerby/has/common/ssl/SSLHostnameVerifier.java
index b474d7b..c2ffe3e 100644
--- a/has-project/has-common/src/main/java/org/apache/kerby/has/common/ssl/SSLHostnameVerifier.java
+++ b/has-project/has-common/src/main/java/org/apache/kerby/has/common/ssl/SSLHostnameVerifier.java
@@ -376,7 +376,7 @@ public interface SSLHostnameVerifier extends javax.net.ssl.HostnameVerifier
{
                           final boolean strictWithSubDomains)
             throws SSLException {
             // Build up lists of allowed hosts For logging/debugging purposes.
-            StringBuffer buf = new StringBuffer(32);
+            StringBuilder buf = new StringBuilder(32);
             buf.append('<');
             for (int i = 0; i < hosts.length; i++) {
                 String h = hosts[i];
@@ -414,8 +414,8 @@ public interface SSLHostnameVerifier extends javax.net.ssl.HostnameVerifier
{
                 throw new SSLException(msg);
             }
 
-            // StringBuffer for building the error message.
-            buf = new StringBuffer();
+            // StringBuilder for building the error message.
+            buf = new StringBuilder();
 
             boolean match = false;
             out:


Mime
View raw message