chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1616517 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/antlr3/org/apache/chemistry/opencmis/server/support/query/CmisBaseLexer.g
Date Thu, 07 Aug 2014 15:58:08 GMT
Author: fmui
Date: Thu Aug  7 15:58:07 2014
New Revision: 1616517

URL: http://svn.apache.org/r1616517
Log:
minor query improvements

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/antlr3/org/apache/chemistry/opencmis/server/support/query/CmisBaseLexer.g

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/antlr3/org/apache/chemistry/opencmis/server/support/query/CmisBaseLexer.g
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/antlr3/org/apache/chemistry/opencmis/server/support/query/CmisBaseLexer.g?rev=1616517&r1=1616516&r2=1616517&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/antlr3/org/apache/chemistry/opencmis/server/support/query/CmisBaseLexer.g
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/antlr3/org/apache/chemistry/opencmis/server/support/query/CmisBaseLexer.g
Thu Aug  7 15:58:07 2014
@@ -46,14 +46,15 @@ tokens {
     private List<String> errorMessages = new ArrayList<String>();
     
     public boolean hasErrors() {
-    	return errorMessages.size() > 0;
+    	return !errorMessages.isEmpty();
     }
 
 	public String getErrorMessages() {
-		StringBuffer allMessages = new StringBuffer();
+		StringBuilder allMessages = new StringBuilder();
 		
-		for (String msg : errorMessages)
+		for (String msg : errorMessages) {
 			allMessages.append(msg).append('\n');
+		}
 			
 		return allMessages.toString();
 	}



Mime
View raw message