Spring Cleaning in December

- Delete unused imports
- Delete unused code
- Clean up warnings
This commit is contained in:
Sam Brannen
2015-12-17 20:27:33 +01:00
parent 0e68d2e951
commit 5b3edcd9f9
36 changed files with 61 additions and 128 deletions

View File

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

View File

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