Skip to content

Commit

Permalink
refactor(yaml): make NodeConverter final and hide constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Siroshun09 committed Mar 10, 2024
1 parent a242f5d commit 08b4581
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import java.util.ArrayList;
import java.util.List;

class NodeConverter {
final class NodeConverter {

static @NotNull MapNode toMapNode(@Nullable org.yaml.snakeyaml.nodes.Node root, @NotNull YamlHolder yamlHolder) throws IOException {
if (root instanceof MappingNode mappingNode) {
Expand Down Expand Up @@ -347,4 +347,8 @@ private static void applyComments(@NotNull Node<?> node, @NotNull org.yaml.snake
}
}
}

private NodeConverter() {
throw new UnsupportedOperationException();
}
}

0 comments on commit 08b4581

Please sign in to comment.