Index: org/apache/catalina/realm/DataSourceRealm.java =================================================================== --- org/apache/catalina/realm/DataSourceRealm.java (revision 831814) +++ org/apache/catalina/realm/DataSourceRealm.java (working copy) @@ -626,7 +626,7 @@ super.start(); // Create the roles PreparedStatement string - StringBuffer temp = new StringBuffer("SELECT "); + StringBuilder temp = new StringBuilder("SELECT "); temp.append(roleNameCol); temp.append(" FROM "); temp.append(userRoleTable); @@ -636,7 +636,7 @@ preparedRoles = temp.toString(); // Create the credentials PreparedStatement string - temp = new StringBuffer("SELECT "); + temp = new StringBuilder("SELECT "); temp.append(userCredCol); temp.append(" FROM "); temp.append(userTable); Index: org/apache/catalina/realm/GenericPrincipal.java =================================================================== --- org/apache/catalina/realm/GenericPrincipal.java (revision 831814) +++ org/apache/catalina/realm/GenericPrincipal.java (working copy) @@ -185,7 +185,7 @@ */ public String toString() { - StringBuffer sb = new StringBuffer("GenericPrincipal["); + StringBuilder sb = new StringBuilder("GenericPrincipal["); sb.append(this.name); sb.append("("); for( int i=0;i