Fix [cast] compiler warnings
This commit is contained in:
committed by
Chris Beams
parent
b0986049a3
commit
6c14eaad61
@@ -953,7 +953,7 @@ public class SqlQueryTests extends AbstractJdbcTests {
|
||||
public List findCustomers(List ids) {
|
||||
Map params = new HashMap();
|
||||
params.put("ids", ids);
|
||||
return (List) executeByNamedParam(params);
|
||||
return executeByNamedParam(params);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1026,7 +1026,7 @@ public class SqlQueryTests extends AbstractJdbcTests {
|
||||
public List findCustomers(Integer id) {
|
||||
Map params = new HashMap();
|
||||
params.put("id1", id);
|
||||
return (List) executeByNamedParam(params);
|
||||
return executeByNamedParam(params);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1067,7 +1067,7 @@ public class SqlQueryTests extends AbstractJdbcTests {
|
||||
public List findCustomers(Integer id1) {
|
||||
Map params = new HashMap();
|
||||
params.put("id1", id1);
|
||||
return (List) executeByNamedParam(params);
|
||||
return executeByNamedParam(params);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ public class SQLErrorCodesFactoryTests extends TestCase {
|
||||
TestSQLErrorCodesFactory sf = new TestSQLErrorCodesFactory();
|
||||
assertEquals(1, sf.getErrorCodes("Oracle").getCustomTranslations().length);
|
||||
CustomSQLErrorCodesTranslation translation =
|
||||
(CustomSQLErrorCodesTranslation) sf.getErrorCodes("Oracle").getCustomTranslations()[0];
|
||||
sf.getErrorCodes("Oracle").getCustomTranslations()[0];
|
||||
assertEquals(CustomErrorCodeException.class, translation.getExceptionClass());
|
||||
assertEquals(1, translation.getErrorCodes().length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user