Skip to content

Commit cd996f8

Browse files
committed
Minor formatting improvements to ConfigurationManager
1 parent 2f01786 commit cd996f8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/main/java/dev/triassic/template/configuration/ConfigurationManager.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public static <T> ConfigurationManager<T> load(
6969
.path(path)
7070
.indent(2)
7171
.nodeStyle(NodeStyle.BLOCK)
72-
.defaultOptions(opts -> InterfaceDefaultOptions.addTo(opts, builder -> {
73-
builder.addProcessor(ExcludePlatform.class, excludePlatform(platformType));
74-
})
72+
.defaultOptions(opts -> InterfaceDefaultOptions.addTo(opts,
73+
builder -> builder.addProcessor(ExcludePlatform.class,
74+
excludePlatform(platformType)))
7575
.header(HEADER))
7676
.build();
7777

@@ -117,6 +117,7 @@ private static Processor.Factory<ExcludePlatform, Object> excludePlatform(
117117
return (annotation, fieldType) -> (value, destination) -> {
118118
for (PlatformType platform : annotation.value()) {
119119
if (platformType.equals(platform)) {
120+
// noinspection DataFlowIssue
120121
destination.parent().removeChild(destination.key());
121122
break;
122123
}

0 commit comments

Comments
 (0)