Author: jleroux
Date: Thu Mar 17 12:52:27 2011
New Revision: 1082475
URL:
http://svn.apache.org/viewvc?rev=1082475&view=revLog:
This version compiles under all Java version (so far :/ )
Modified:
ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java
Modified: ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java?rev=1082475&r1=1082474&r2=1082475&view=diff==============================================================================
--- ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java (original)
+++ ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java Thu Mar 17 12:52:27 2011
@@ -37,7 +37,7 @@ public abstract class Planner<P extends
}
}
- public SQLPlan<?> plan(SQLStatement statement) {
+ public <STMNT extends SQLStatement<?>> SQLPlan<?> plan(STMNT statement) {
if (statement instanceof SQLDelete) return planDelete((SQLDelete) statement);
if (statement instanceof SQLInsert) return planInsert((SQLInsert) statement);
if (statement instanceof SQLSelect) return planSelect((SQLSelect) statement);