From efc1619fdd1135189738753f93c2cd173e9b18ce Mon Sep 17 00:00:00 2001 From: yawkat Date: Wed, 27 May 2026 08:49:40 +0000 Subject: [PATCH] Clarify TOML array table comment Co-Authored-By: multicode --- .../main/java/tools/jackson/dataformat/toml/TomlParser.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/toml/src/main/java/tools/jackson/dataformat/toml/TomlParser.java b/toml/src/main/java/tools/jackson/dataformat/toml/TomlParser.java index e01947e0..1f4e6714 100644 --- a/toml/src/main/java/tools/jackson/dataformat/toml/TomlParser.java +++ b/toml/src/main/java/tools/jackson/dataformat/toml/TomlParser.java @@ -176,9 +176,8 @@ private FieldRef parseAndEnterKey( /* "Any reference to an array of tables points to the most recently defined table element of the array. * This allows you to define sub-tables, and even sub-arrays of tables, inside the most recent table." * - * I interpret this somewhat broadly: I accept such references even if there were unrelated tables - * in between, and I accept them for simple dotted keys as well (not just for tables). These cases don't - * seem to be covered by the specification. + * I interpret this somewhat broadly for table headers: I accept such references even if there were + * unrelated tables in between. This case doesn't seem to be covered by the specification. */ TomlArrayNode array = (TomlArrayNode) existing; if (array.closed) {