Skip to content

Commit

Permalink
chore(build): Fix new Checkstyle failures
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Oct 14, 2023
1 parent 6489674 commit 2275af0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void testDefaultsApplied() throws SerializationException {
}

@ConfigSerializable
private static class CommentedObject {
private static final class CommentedObject {
@Setting("commented-key")
@Comment("You look nice today")
private String color;
Expand Down Expand Up @@ -150,7 +150,7 @@ void testNoArglessConstructor() {
}

@ConfigSerializable
private static class TestObjectChild extends TestObject {
private static final class TestObjectChild extends TestObject {
@Setting("child-setting") private boolean childSetting;
}

Expand All @@ -167,7 +167,7 @@ void testSuperclassFieldsIncluded() throws SerializationException {
}

@ConfigSerializable
private static class FieldNameObject {
private static final class FieldNameObject {
@Setting private boolean loads;
}

Expand All @@ -181,12 +181,12 @@ void testKeyFromFieldName() throws SerializationException {
assertTrue(obj.loads);
}

private static class ParentObject {
private static final class ParentObject {
@Comment("Comment on parent") private InnerObject inner = new InnerObject();
}

@ConfigSerializable
private static class InnerObject {
private static final class InnerObject {
@Comment("Something") private String test = "Default value";
}

Expand All @@ -206,7 +206,7 @@ private interface ParentInterface {
String test();
}

private static class ChildObject implements ParentInterface {
private static final class ChildObject implements ParentInterface {
@Comment("Something") private String test = "Default value";

@Override public String test() {
Expand All @@ -215,7 +215,7 @@ private static class ChildObject implements ParentInterface {
}

@ConfigSerializable
private static class ContainingObject {
private static final class ContainingObject {
@Setting ParentInterface inner = new ChildObject();
@Setting List<ParentInterface> list = new ArrayList<>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void testSerializeCustomNumber() {
assertNull(serializer, "Type serializer for custom number class should be null!");
}

private static class CustomNumber extends Number {
private static final class CustomNumber extends Number {
public static final long serialVersionUID = 4647727438607023527L;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ void testMapSerializerPreservesChildComments() throws SerializationException {
}

@ConfigSerializable
private static class TestObject {
private static final class TestObject {
@Setting("int") private int value;
@Setting private String name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

class GuiceObjectMapperTest {

private static class TestModule extends AbstractModule {
private static final class TestModule extends AbstractModule {
@Override
protected void configure() {
this.bind(String.class).toInstance("test value");
Expand Down

0 comments on commit 2275af0

Please sign in to comment.