Skip to content

Commit

Permalink
[java] remove toml parser warning (#14711)
Browse files Browse the repository at this point in the history
Co-authored-by: Puja Jagani <[email protected]>
  • Loading branch information
Delta456 and pujagani authored Nov 5, 2024
1 parent 4a0d05e commit 4d1752b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions java/src/org/openqa/selenium/grid/config/TomlConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,15 @@
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.logging.Logger;
import org.openqa.selenium.internal.Require;

public class TomlConfig implements Config {

private final Toml toml;
private static final Logger LOG = Logger.getLogger(TomlConfig.class.getName());

public TomlConfig(Reader reader) {
try {
toml = JToml.parse(reader);
LOG.warning(
"Please use quotes to denote strings. Upcoming TOML parser will require this and unquoted"
+ " strings will throw an error in the future");
} catch (IOException e) {
throw new ConfigException("Unable to read TOML.", e);
} catch (ParseException e) {
Expand Down

0 comments on commit 4d1752b

Please sign in to comment.