Skip to content

Commit

Permalink
[java] toml: warn about upcoming change enforcing string to have quot…
Browse files Browse the repository at this point in the history
…es (#14491)



Co-authored-by: Puja Jagani <[email protected]>
  • Loading branch information
Delta456 and pujagani authored Sep 13, 2024
1 parent c43386f commit 6b4c39c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions java/src/org/openqa/selenium/grid/config/TomlConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,20 @@
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 6b4c39c

Please sign in to comment.