Fix [cast] compiler warnings

This commit is contained in:
Phillip Webb
2012-12-18 18:06:44 -08:00
committed by Chris Beams
parent b0986049a3
commit 6c14eaad61
63 changed files with 122 additions and 122 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}