File tree Expand file tree Collapse file tree 6 files changed +8
-2
lines changed
cloud-annotations/src/test/java/org/incendo/cloud/annotations
main/java/org/incendo/cloud/description
test/java/org/incendo/cloud Expand file tree Collapse file tree 6 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ public void testInjectedParameters(
261261 System .out .printf ("Injected value: %s\n " , injectableValue .toString ());
262262 }
263263
264+ @ SuppressWarnings ({"ClassInitializationDeadlock" , "EffectivelyPrivate" })
264265 @ Command ("class" )
265266 private static class ClassCommandMethod {
266267
@@ -278,6 +279,7 @@ public void annotatedMethod() {
278279 }
279280
280281
282+ @ SuppressWarnings ({"ClassInitializationDeadlock" , "EffectivelyPrivate" })
281283 @ Bad1
282284 @ CommandDescription ("Hello World!" )
283285 private static class AnnotatedClass {
@@ -348,6 +350,7 @@ public String toString() {
348350 }
349351
350352
353+ @ SuppressWarnings ("EffectivelyPrivate" )
351354 private static final class AliasedCommands {
352355
353356 private static final String COMMAND_ALIASES = "acommand|analias|anotheralias" ;
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ void testPrefixedAlias() {
6464 ).join ();
6565 }
6666
67+ @ SuppressWarnings ({"ClassInitializationDeadlock" , "EffectivelyPrivate" })
6768 private static class TestCommandClass {
6869
6970 @ Command ("/command|/cmd" )
Original file line number Diff line number Diff line change 3939@ API (status = API .Status .STABLE )
4040public interface Description {
4141
42+ @ SuppressWarnings ("ClassInitializationDeadlock" )
4243 Description EMPTY = DescriptionImpl .of ("" );
4344
4445 /**
Original file line number Diff line number Diff line change 3232
3333class CommandTest {
3434
35- @ Test ()
35+ @ Test
3636 void noArguments () {
3737 assertThat (
3838 Command
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ void testNonExistentInjection() {
125125 assertThat (result ).isEmpty ();
126126 }
127127
128- @ SuppressWarnings ("unused" )
128+ @ SuppressWarnings ({ "unused" , "UnnecessaryQualifier" } )
129129 private static void testAnnotatedMethod (@ TestAnnotation final Integer ignored ) {}
130130
131131
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ public final class TestUtils {
4848 private TestUtils () {
4949 }
5050
51+ @ SuppressWarnings ({"ClassInitializationDeadlock" , "EffectivelyPrivate" })
5152 private abstract static class TestCommandSenderCommandManager extends CommandManager <TestCommandSender > {
5253
5354 @ SuppressWarnings ("unused" ) // mocked via mockito
You can’t perform that action at this time.
0 commit comments