openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r898168 [2/2] - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ openjpa-jdbc/src/main/jav...
Date Tue, 12 Jan 2010 03:31:14 GMT
Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/LocateExpression.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/LocateExpression.java?rev=898168&r1=898167&r2=898168&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/LocateExpression.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/LocateExpression.java
Tue Jan 12 03:31:11 2010
@@ -55,7 +55,7 @@
 	public String asExpression(AliasContext ctx) {
         String start = _start == null ? EMPTY : COMMA +
                 ((Visitable)_start).asExpression(ctx);
-		return new StringBuffer(_op.toString())
+		return new StringBuilder(_op.toString())
 		    .append(OPEN_BRACE)
 		    .append(((Visitable)_e1).asExpression(ctx))
 		    .append(COMMA) 

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/NewInstance.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/NewInstance.java?rev=898168&r1=898167&r2=898168&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/NewInstance.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/NewInstance.java
Tue Jan 12 03:31:11 2010
@@ -48,7 +48,7 @@
 	
 	
 	public String asProjection(AliasContext ctx) {
-        StringBuffer tmp = new StringBuffer("NEW ").append(_cls.getName())
+            StringBuilder tmp = new StringBuilder("NEW ").append(_cls.getName())
 		    .append("(");
 		if (_args == null || _args.isEmpty())
 			return tmp.append(")").toString();

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/QueryDefinitionImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/QueryDefinitionImpl.java?rev=898168&r1=898167&r2=898168&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/QueryDefinitionImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/QueryDefinitionImpl.java
Tue Jan 12 03:31:11 2010
@@ -354,7 +354,7 @@
 	@Override
 	public String asExpression(AliasContext ctx) {
 		ctx.push(this);
-		StringBuffer buffer = new StringBuffer();
+		StringBuilder buffer = new StringBuilder();
 		registerDomains(ctx);
 		String select = _distinct ? "SELECT DISTINCT " : "SELECT ";
         fillBuffer(select, buffer, ctx, getProjections(), Visit.PROJECTION);
@@ -371,7 +371,7 @@
 		return asExpression(ctx);
 	}
 	
-    public void fillBuffer(String header, StringBuffer buffer, AliasContext ctx,
+    public void fillBuffer(String header, StringBuilder buffer, AliasContext ctx,
 		List list, Visit visit) {
 		if (list == null || list.isEmpty())
 			return;
@@ -392,7 +392,7 @@
 		}
 	}
 	
-    public void fillBuffer(String header, StringBuffer buffer, AliasContext ctx,
+    public void fillBuffer(String header, StringBuilder buffer, AliasContext ctx,
 			Predicate p) {
 		if (p == null)
 			return;

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/VarArgsExpression.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/VarArgsExpression.java?rev=898168&r1=898167&r2=898168&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/VarArgsExpression.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/VarArgsExpression.java
Tue Jan 12 03:31:11 2010
@@ -35,7 +35,7 @@
 
 	@Override
 	public String asExpression(AliasContext ctx) {
-		StringBuffer tmp = new StringBuffer();
+		StringBuilder tmp = new StringBuilder();
 		for (int i = 0; i < _values.length; i++) {
 			Visitable v = (Visitable)_values[i];
 			tmp.append(v.asExpression(ctx))

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/WhenClause.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/WhenClause.java?rev=898168&r1=898167&r2=898168&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/WhenClause.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/WhenClause.java
Tue Jan 12 03:31:11 2010
@@ -47,7 +47,7 @@
 	}
 	
 	public String toJPQL(AliasContext ctx) {
-		StringBuffer tmp = new StringBuffer();
+		StringBuilder tmp = new StringBuilder();
 		tmp.append(" WHEN ").append(JPQLHelper.toJPQL(ctx, when))
 		   .append(" THEN ").append(JPQLHelper.toJPQL(ctx, then));
 		return tmp.toString();

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java?rev=898168&r1=898167&r2=898168&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java
Tue Jan 12 03:31:11 2010
@@ -190,7 +190,7 @@
     public static String[] wrap(String longLine, int width) {
         String[] words = longLine.split("\\ ");
         List<String> lines = new ArrayList<String>();
-        StringBuffer line = new StringBuffer();
+        StringBuilder line = new StringBuilder();
         for (int i = 0; i < words.length; i++) {
             String w = words[i];
             if (line.length() + w.length() < width) {
@@ -680,7 +680,7 @@
         }
         
         public Annotation addArgument(String key, String[] vs) {
-            StringBuffer tmp = new StringBuffer(BLOCK_DELIMITER.start);
+            StringBuilder tmp = new StringBuilder(BLOCK_DELIMITER.start);
             for (int i=0; i < vs.length; i++) {
                 tmp.append(quote(vs[i]));
                 tmp.append(i != vs.length-1 ? COMMA : BLANK);

Modified: openjpa/trunk/openjpa-xmlstore/src/main/java/org/apache/openjpa/xmlstore/ObjectData.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-xmlstore/src/main/java/org/apache/openjpa/xmlstore/ObjectData.java?rev=898168&r1=898167&r2=898168&view=diff
==============================================================================
--- openjpa/trunk/openjpa-xmlstore/src/main/java/org/apache/openjpa/xmlstore/ObjectData.java
(original)
+++ openjpa/trunk/openjpa-xmlstore/src/main/java/org/apache/openjpa/xmlstore/ObjectData.java
Tue Jan 12 03:31:11 2010
@@ -373,7 +373,7 @@
     }
 
     public String toString() {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append("Class: (" + _meta.getDescribedType().getName() + ")\n");
         buf.append("Object Id: (" + _oid + ")\n");
         buf.append("Version: (" + _version + ")\n");



Mime
View raw message