openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r676926 - /openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java
Date Tue, 15 Jul 2008 14:33:31 GMT
Author: mikedd
Date: Tue Jul 15 07:33:31 2008
New Revision: 676926

URL: http://svn.apache.org/viewvc?rev=676926&view=rev
Log:
OPENJPA-51 Use StringBuffer instead of StringBuffer in jdk 4 modules

Modified:
    openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java

Modified: openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java?rev=676926&r1=676925&r2=676926&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java
(original)
+++ openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java
Tue Jul 15 07:33:31 2008
@@ -677,13 +677,13 @@
                 tableAlias = getTableAlias(table, pj).toString();
                 _tableAliases.put(table, tableAlias);
             }
-            return new StringBuilder(tableAlias).append(col).toString();
+            return new StringBuffer(tableAlias).append(col).toString();
         }
         return getTableAlias(table, pj).append(col).toString();
     }
     
-    private StringBuilder getTableAlias(Table table, PathJoins pj) {
-        StringBuilder buf = new StringBuilder();
+    private StringBuffer getTableAlias(Table table, PathJoins pj) {
+        StringBuffer buf = new StringBuffer();
         if (_from != null) {
             String alias = toAlias(_from.getTableIndex(table, pj, true));
             if (_dict.requiresAliasForSubselect)



Mime
View raw message