Spring Cleaning in December
- Delete unused imports - Delete unused code - Clean up warnings
This commit is contained in:
@@ -561,9 +561,9 @@ public class DefaultConversionServiceTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public void convertObjectToCollection() {
|
||||
List<String> result = (List<String>) conversionService.convert(3L, List.class);
|
||||
List result = conversionService.convert(3L, List.class);
|
||||
assertEquals(1, result.size());
|
||||
assertEquals(3L, result.get(0));
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ public abstract class AbstractStaxHandlerTestCase {
|
||||
|
||||
private static boolean wwwSpringframeworkOrgIsAccessible() {
|
||||
try {
|
||||
new Socket("www.springframework.org", 80);
|
||||
new Socket("www.springframework.org", 80).close();
|
||||
}
|
||||
catch (Exception e) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user