From 8e1b0dfc701eb64d818adf0cdcea5666052707e2 Mon Sep 17 00:00:00 2001 From: BradBot_1 Date: Fri, 30 Jun 2023 03:39:21 +0100 Subject: [PATCH] CHORE: better typed return on Toml #parseString --- src/main/java/fun/bb1/toml/Toml.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fun/bb1/toml/Toml.java b/src/main/java/fun/bb1/toml/Toml.java index 32cd6d9..008ef44 100644 --- a/src/main/java/fun/bb1/toml/Toml.java +++ b/src/main/java/fun/bb1/toml/Toml.java @@ -16,7 +16,7 @@ public final class Toml { private Toml() { } - public static final @NotNull Object parseString(@NotNull final String tomlString) { + public static final @NotNull ITomlElement parseString(@NotNull final String tomlString) { TomlParseResult result = org.tomlj.Toml.parse(tomlString); if (result.hasErrors()) { System.err.println("While parsing a toml document [" + result.errors().size() + "] error(s) where found!");