Browse Source

Delete unused code in ReflectionHintsPredicatesTests

pull/29136/head
Sam Brannen 2 years ago
parent
commit
75dfd47826
  1. 7
      spring-core/src/test/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicatesTests.java

7
spring-core/src/test/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicatesTests.java

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
package org.springframework.aot.hint.predicate;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
@ -47,12 +46,8 @@ class ReflectionHintsPredicatesTests { @@ -47,12 +46,8 @@ class ReflectionHintsPredicatesTests {
private static Constructor<?> publicConstructor;
private static Method privateMethod;
private static Method publicMethod;
private static Field privateField;
private static Field publicField;
private final ReflectionHintsPredicates reflection = new ReflectionHintsPredicates();
@ -64,9 +59,7 @@ class ReflectionHintsPredicatesTests { @@ -64,9 +59,7 @@ class ReflectionHintsPredicatesTests {
static void setupAll() throws Exception {
privateConstructor = SampleClass.class.getDeclaredConstructor(String.class);
publicConstructor = SampleClass.class.getConstructor();
privateMethod = SampleClass.class.getDeclaredMethod("privateMethod");
publicMethod = SampleClass.class.getMethod("publicMethod");
privateField = SampleClass.class.getDeclaredField("privateField");
publicField = SampleClass.class.getField("publicField");
}

Loading…
Cancel
Save