activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r935638 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/GenerateJDBCStatements.java
Date Mon, 19 Apr 2010 15:58:12 GMT
Author: dejanb
Date: Mon Apr 19 15:58:11 2010
New Revision: 935638

URL: http://svn.apache.org/viewvc?rev=935638&view=rev
Log:
GenerateJDBCStatements - eliminate compiler warnings

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/GenerateJDBCStatements.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/GenerateJDBCStatements.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/GenerateJDBCStatements.java?rev=935638&r1=935637&r2=935638&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/GenerateJDBCStatements.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/GenerateJDBCStatements.java
Mon Apr 19 15:58:11 2010
@@ -55,14 +55,14 @@ public class GenerateJDBCStatements {
     	}
     	for(int i=0; i<methods.length;i++){
     		if(sPattern.matcher(methods[i].getName()).find()&&setMethods.contains(methods[i].getName().replace("get","set"))){
-    			System.out.println("<property name=\""+methods[i].getName().substring(3,4).toLowerCase()+methods[i].getName().substring(4)+"\"
value=\""+returnStatement(methods[i].invoke(s, null))+"\" />");
+    			System.out.println("<property name=\""+methods[i].getName().substring(3,4).toLowerCase()+methods[i].getName().substring(4)+"\"
value=\""+returnStatement(methods[i].invoke(s, (Object[])null))+"\" />");
     		}
     	}
     	//for a typo is not needed if removeMessageStatment typo is corrected
     	Pattern sPattern2= Pattern.compile("get.*Statment$");
     	for(int i=0; i<methods.length;i++){
     		if(sPattern2.matcher(methods[i].getName()).find()){
-    			System.out.println("<property name=\""+methods[i].getName().substring(3,4).toLowerCase()+methods[i].getName().substring(4)+"\"
value=\""+returnStatement(methods[i].invoke(s, null))+"\" />");
+    			System.out.println("<property name=\""+methods[i].getName().substring(3,4).toLowerCase()+methods[i].getName().substring(4)+"\"
value=\""+returnStatement(methods[i].invoke(s, (Object[])null))+"\" />");
     		}
     	}
     	//end of generating because of typo



Mime
View raw message