Author: mrisaliti
Date: Fri Mar 4 23:18:33 2011
New Revision: 1078211
URL:
http://svn.apache.org/viewvc?rev=1078211&view=revLog:
Remove some warning in SqlJdbcUtil (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java?rev=1078211&r1=1078210&r2=1078211&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/SqlJdbcUtil.java Fri Mar 4 23:18:33 2011
@@ -501,7 +501,7 @@ public class SqlJdbcUtil {
// ----- Try out the new handler code -----
- JdbcValueHandler handler = mft.getJdbcValueHandler();
+ JdbcValueHandler<?> handler = mft.getJdbcValueHandler();
if (handler != null) {
try {
entity.dangerousSetNoCheckButFast(curField, handler.getValue(rs, ind));
@@ -949,7 +949,7 @@ public class SqlJdbcUtil {
}
public static void addValue(StringBuilder buffer, ModelField field, Object value, List<EntityConditionParam> params) {
- if (value instanceof Collection) {
+ if (value instanceof Collection<?>) {
buffer.append("(");
Iterator<Object> it = UtilGenerics.checkCollection(value).iterator();
while (it.hasNext()) {