Skip to content

Commit 6b4c39c

Browse files
Delta456pujagani
andauthored
[java] toml: warn about upcoming change enforcing string to have quotes (#14491)
Co-authored-by: Puja Jagani <puja.jagani93@gmail.com>
1 parent c43386f commit 6b4c39c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎java/src/org/openqa/selenium/grid/config/TomlConfig.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,20 @@
3131
import java.util.List;
3232
import java.util.Optional;
3333
import java.util.Set;
34+
import java.util.logging.Logger;
3435
import org.openqa.selenium.internal.Require;
3536

3637
public class TomlConfig implements Config {
3738

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

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

0 commit comments

Comments
 (0)