Clean up compiler warnings
This commit is contained in:
@@ -131,12 +131,14 @@ class BeanValidationBeanRegistrationAotProcessorTests {
|
||||
|
||||
private static class MethodParameterLevelConstraint {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public String hello(@Exists String name) {
|
||||
return "Hello " + name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class ConstructorParameterLevelConstraint {
|
||||
|
||||
private final String name;
|
||||
@@ -151,6 +153,7 @@ class BeanValidationBeanRegistrationAotProcessorTests {
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class PropertyLevelConstraint {
|
||||
|
||||
@Exists
|
||||
|
||||
@@ -196,7 +196,7 @@ public class MethodValidationTests {
|
||||
public Object invoke(MethodInvocation invocation) throws Throwable {
|
||||
Method method;
|
||||
try {
|
||||
method = ClassUtils.getMethod(MyValidBean.class, invocation.getMethod().getName(), null);
|
||||
method = ClassUtils.getMethod(MyValidBean.class, invocation.getMethod().getName(), (Class<?>[]) null);
|
||||
}
|
||||
catch (IllegalStateException ex) {
|
||||
method = BridgeMethodResolver.findBridgedMethod(
|
||||
|
||||
Reference in New Issue
Block a user