Skip to content

Commit

Permalink
Added MapYAMLParser.
Browse files Browse the repository at this point in the history
Updated FulmiCollection.
Removed unnecessary nullity annotations.
Remover org.joor.Reflect dependency since rarely used.
Fixed CallableYAMLParser saving static fields.
Fixed getParsers() concurrent modification exception.
Fixed various bugs.
  • Loading branch information
Fulminazzo committed Jan 7, 2024
1 parent 4924db0 commit c6c5e83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static <O, E extends Enum<E>> YAMLParser<O> getParser(@Nullable Class<O>
* @return the parsers
*/
public static @NotNull LinkedList<YAMLParser<?>> getParsers() {
if (!parsers.isEmpty()) {
if (!parsers.isEmpty() && !(parsers.get(parsers.size() - 1) instanceof SerializableYAMLParser)) {
parsers.removeIf(s -> s instanceof SerializableYAMLParser);
parsers.add(new SerializableYAMLParser());
}
Expand Down

0 comments on commit c6c5e83

Please sign in to comment.