Restored Java 5 compatibility through avoiding Collections.newSetFromMap

Issue: SPR-11313
This commit is contained in:
Juergen Hoeller
2014-01-15 14:14:50 +01:00
parent f8f6c5fd89
commit 62fd12c527
2 changed files with 6 additions and 7 deletions

View File

@@ -109,7 +109,7 @@ public class StatementCreatorUtilsTests {
@Test
public void testSetParameterValueWithNullAndGetParameterTypeWorkingButNotForOtherDriver() throws SQLException {
StatementCreatorUtils.driversWithNoSupportForGetParameterType.clear();
StatementCreatorUtils.driversWithNoSupportForGetParameterType.add("Oracle JDBC Driver");
StatementCreatorUtils.driversWithNoSupportForGetParameterType.put("Oracle JDBC Driver", Boolean.TRUE);
Connection con = mock(Connection.class);
DatabaseMetaData dbmd = mock(DatabaseMetaData.class);
ParameterMetaData pmd = mock(ParameterMetaData.class);