Suppress injection test warnings
This commit is contained in:
@@ -22,6 +22,7 @@ import static org.junit.Assert.assertThat;
|
||||
/**
|
||||
* Test for {@link FieldInjection}.
|
||||
*/
|
||||
|
||||
public class FieldInjectionTest {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -114,6 +115,8 @@ public class FieldInjectionTest {
|
||||
assertThat(injection, nullValue());
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class ThrowingConstructor {
|
||||
@Inject
|
||||
private ProvidedClass providedClass;
|
||||
|
||||
@@ -6,6 +6,8 @@ import javax.inject.Inject;
|
||||
/**
|
||||
* Class with invalid @PostConstruct method.
|
||||
*/
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public abstract class InvalidPostConstruct {
|
||||
|
||||
public static final class WithParams {
|
||||
|
||||
Reference in New Issue
Block a user