summaryrefslogtreecommitdiffstats
path: root/redback-authentication
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-08-08 22:00:29 +0000
committerOlivier Lamy <olamy@apache.org>2012-08-08 22:00:29 +0000
commite4fca67d31cab0379461f90c5c431b9459c502e3 (patch)
tree9de0d67f8b136e8ab3a860c79d9c18dfccaf8154 /redback-authentication
parentb86cd7c849bf465f59445ae00eaa59e542ff9cc0 (diff)
downloadarchiva-e4fca67d31cab0379461f90c5c431b9459c502e3.tar.gz
archiva-e4fca67d31cab0379461f90c5c431b9459c502e3.zip
StringBuilder rather than StringBuffer
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1370988 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'redback-authentication')
-rw-r--r--redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/AuthenticationResult.java2
-rw-r--r--redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/DefaultAuthenticationManager.java2
-rw-r--r--redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/PasswordBasedAuthenticationDataSource.java2
-rw-r--r--redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/TokenBasedAuthenticationDataSource.java2
4 files changed, 4 insertions, 4 deletions
diff --git a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/AuthenticationResult.java b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/AuthenticationResult.java
index 2fbcc8086..189eb1fd2 100644
--- a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/AuthenticationResult.java
+++ b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/AuthenticationResult.java
@@ -87,7 +87,7 @@ public class AuthenticationResult
public String toString()
{
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
sb.append( "AuthenticationResult[" );
sb.append( "principal=" ).append( principal );
sb.append( ",isAuthenticated=" ).append( Boolean.toString( isAuthenticated ) );
diff --git a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/DefaultAuthenticationManager.java b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/DefaultAuthenticationManager.java
index 5c74df87e..7806fb10d 100644
--- a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/DefaultAuthenticationManager.java
+++ b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/DefaultAuthenticationManager.java
@@ -109,7 +109,7 @@ public class DefaultAuthenticationManager
private String knownAuthenticators()
{
- StringBuffer strbuf = new StringBuffer();
+ StringBuilder strbuf = new StringBuilder();
for ( Authenticator authenticator : authenticators )
{
diff --git a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/PasswordBasedAuthenticationDataSource.java b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/PasswordBasedAuthenticationDataSource.java
index c156fd377..ad3a7f48a 100644
--- a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/PasswordBasedAuthenticationDataSource.java
+++ b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/PasswordBasedAuthenticationDataSource.java
@@ -73,7 +73,7 @@ public class PasswordBasedAuthenticationDataSource
public String toString()
{
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
sb.append( "PasswordBasedAuthenticationDataSource[" );
sb.append( "principal=" ).append( principal );
sb.append( ",password=" );
diff --git a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/TokenBasedAuthenticationDataSource.java b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/TokenBasedAuthenticationDataSource.java
index 7a8e4ef9c..3fcbb1f1c 100644
--- a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/TokenBasedAuthenticationDataSource.java
+++ b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/TokenBasedAuthenticationDataSource.java
@@ -72,7 +72,7 @@ public class TokenBasedAuthenticationDataSource
public String toString()
{
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
sb.append( "TokenBasedAuthenticationDataSource[" );
sb.append( "principal=" ).append( principal );
sb.append( ",token=" ).append( token );