Suppress warnings about unused stuff that is used reflectively
This commit is contained in:
@@ -47,6 +47,7 @@ public class IbatisBatchItemWriterTests {
|
||||
|
||||
private String statementId = "updateFoo";
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private class Foo {
|
||||
private Long id;
|
||||
private String bar;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -119,6 +119,7 @@ public class SpringValidatorTests {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class TestBean {
|
||||
private String foo;
|
||||
|
||||
|
||||
@@ -45,11 +45,6 @@ public class ResultHolderResultQueueTests {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public TestResultHolder(Throwable error) {
|
||||
super();
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
public RepeatContext getContext() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -118,6 +118,7 @@ public class SimpleMethodInvokerTests {
|
||||
assertEquals(methodInvoker, methodInvoker2);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private class TestClass{
|
||||
|
||||
boolean beforeCalled = false;
|
||||
|
||||
Reference in New Issue
Block a user