Suppress warnings about unused stuff that is used reflectively

This commit is contained in:
dsyer
2009-12-09 13:09:38 +00:00
parent cb17024c01
commit b7df8da592
7 changed files with 8 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ public class IbatisBatchItemWriterTests {
private String statementId = "updateFoo";
@SuppressWarnings("unused")
private class Foo {
private Long id;
private String bar;

View File

@@ -40,6 +40,7 @@ public class JdbcBatchItemWriterNamedParameterTests {
private String sql = "update foo set bar = :bar where id = :id";
@SuppressWarnings("unused")
private class Foo {
private Long id;
private String bar;

View File

@@ -119,6 +119,7 @@ public class SpringValidatorTests {
}
}
@SuppressWarnings("unused")
private static class TestBean {
private String foo;

View File

@@ -45,11 +45,6 @@ public class ResultHolderResultQueueTests {
this.result = result;
}
public TestResultHolder(Throwable error) {
super();
this.error = error;
}
public RepeatContext getContext() {
return null;
}

View File

@@ -60,6 +60,7 @@ public class AnnotationMethodResolverTests {
}
@SuppressWarnings("unused")
private static class SingleAnnotationTestBean {
@TestAnnotation
@@ -73,6 +74,7 @@ public class AnnotationMethodResolverTests {
}
@SuppressWarnings("unused")
private static class MultipleAnnotationTestBean {
@TestAnnotation
@@ -87,6 +89,7 @@ public class AnnotationMethodResolverTests {
}
@SuppressWarnings("unused")
private static class NoAnnotationTestBean {
public String upperCase(String s) {

View File

@@ -70,6 +70,7 @@ public class DefaultPropertEditorRegistrarTests {
mapper.setCustomEditors(Collections.singletonMap(new Object(), new CustomNumberEditor(Long.class, true)));
}
@SuppressWarnings("unused")
private static class BeanWithIntArray {
private int[] numbers;

View File

@@ -118,6 +118,7 @@ public class SimpleMethodInvokerTests {
assertEquals(methodInvoker, methodInvoker2);
}
@SuppressWarnings("unused")
private class TestClass{
boolean beforeCalled = false;