Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public void testInjectedParameters(
System.out.printf("Injected value: %s\n", injectableValue.toString());
}

@SuppressWarnings({"ClassInitializationDeadlock", "EffectivelyPrivate"})
@Command("class")
private static class ClassCommandMethod {

Expand All @@ -278,6 +279,7 @@ public void annotatedMethod() {
}


@SuppressWarnings({"ClassInitializationDeadlock", "EffectivelyPrivate"})
@Bad1
@CommandDescription("Hello World!")
private static class AnnotatedClass {
Expand Down Expand Up @@ -348,6 +350,7 @@ public String toString() {
}


@SuppressWarnings("EffectivelyPrivate")
private static final class AliasedCommands {

private static final String COMMAND_ALIASES = "acommand|analias|anotheralias";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ void testPrefixedAlias() {
).join();
}

@SuppressWarnings({"ClassInitializationDeadlock", "EffectivelyPrivate"})
private static class TestCommandClass {

@Command("/command|/cmd")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
@API(status = API.Status.STABLE)
public interface Description {

@SuppressWarnings("ClassInitializationDeadlock")
Description EMPTY = DescriptionImpl.of("");

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

class CommandTest {

@Test()
@Test
void noArguments() {
assertThat(
Command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void testNonExistentInjection() {
assertThat(result).isEmpty();
}

@SuppressWarnings("unused")
@SuppressWarnings({"unused", "UnnecessaryQualifier"})
private static void testAnnotatedMethod(@TestAnnotation final Integer ignored) {}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public final class TestUtils {
private TestUtils() {
}

@SuppressWarnings({"ClassInitializationDeadlock", "EffectivelyPrivate"})
private abstract static class TestCommandSenderCommandManager extends CommandManager<TestCommandSender> {

@SuppressWarnings("unused") // mocked via mockito
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cloud-buildLogic-rootProject-spotless = { id = "org.incendo.cloud-build-logic.sp
checkstyle = "10.12.5"
stylecheck = "0.2.1"
checkerQual = "3.47.0"
errorprone = "2.27.1"
errorprone = "2.42.0"
geantyref = "1.3.16"
jmh = "1.37"
apiguardian = "1.1.2"
Expand Down
Loading