Fix remaining compiler warnings

Fix remaining Java compiler warnings, mainly around missing
generics or deprecated code.

Also add the `-Werror` compiler option to ensure that any future
warnings will fail the build.

Issue: SPR-11064
This commit is contained in:
Phillip Webb
2013-11-21 18:15:09 -08:00
parent 4de3291dc7
commit 59002f2456
540 changed files with 1943 additions and 1843 deletions

View File

@@ -193,6 +193,11 @@ public final class CglibProxyTests extends AbstractAopProxyTests implements Seri
return MethodMatcher.TRUE;
}
@Override
public int hashCode() {
return 0;
}
@Override
public boolean equals(Object obj) {
return true;

View File

@@ -177,6 +177,7 @@ public class PropertySourcesPlaceholderConfigurerTests {
}
@Test(expected=BeanDefinitionStoreException.class)
@SuppressWarnings("serial")
public void nestedUnresolvablePlaceholder() {
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
bf.registerBeanDefinition("testBean",
@@ -192,6 +193,7 @@ public class PropertySourcesPlaceholderConfigurerTests {
}
@Test
@SuppressWarnings("serial")
public void ignoredNestedUnresolvablePlaceholder() {
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
bf.registerBeanDefinition("testBean",

View File

@@ -25,6 +25,7 @@ import static org.junit.Assert.*;
/**
* @author Juergen Hoeller
*/
@SuppressWarnings("deprecation")
public class CronSequenceGeneratorTests {
@Test