Resolve compiler warnings.

This commit is contained in:
Ben Alex
2005-12-24 10:03:18 +00:00
parent ec2debd7fc
commit 6b1f97a381
5 changed files with 10 additions and 23 deletions

View File

@@ -92,7 +92,7 @@ public class UsernamePasswordAuthenticationTokenTests extends TestCase {
Class clazz = UsernamePasswordAuthenticationToken.class;
try {
clazz.getDeclaredConstructor(null);
clazz.getDeclaredConstructor((Class[])null);
fail("Should have thrown NoSuchMethodException");
} catch (NoSuchMethodException expected) {
assertTrue(true);

View File

@@ -15,20 +15,17 @@
package org.acegisecurity.userdetails.jdbc;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashSet;
import junit.framework.TestCase;
import org.acegisecurity.PopulatedDatabase;
import org.acegisecurity.userdetails.UserDetails;
import org.acegisecurity.userdetails.UsernameNotFoundException;
import org.acegisecurity.userdetails.jdbc.JdbcDaoImpl;
import org.springframework.jdbc.object.MappingSqlQuery;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.HashSet;
/**
* Tests {@link JdbcDaoImpl}.