diff --git a/release-notes/VERSION b/release-notes/VERSION index 0c18763255..564b8a87e8 100644 --- a/release-notes/VERSION +++ b/release-notes/VERSION @@ -52,6 +52,7 @@ JSON library. #1380: Change 3.0 to use `module-info.java` directly (and not via Moditect) #1385: Create `jackson-core-[VERSION]-tests.jar` to contain shared test utility classes +#1401: Rename `TreeNode.isContainerNode()` as `isContainer()` (3.0) - Rename `JsonGenerator.Feature.AUTO_CLOSE_JSON_CONTENT` as `AUTO_CLOSE_CONTENT` - Add `TreeCodec.nullNode()`, `TreeNode.isNull()` methods - Change the way `JsonLocation.NA` is included in exception messages diff --git a/src/main/java/tools/jackson/core/TreeNode.java b/src/main/java/tools/jackson/core/TreeNode.java index e54fdf3da4..c17f61be6a 100644 --- a/src/main/java/tools/jackson/core/TreeNode.java +++ b/src/main/java/tools/jackson/core/TreeNode.java @@ -61,7 +61,7 @@ public interface TreeNode * and null values from JSON. *
* Note: one and only one of methods {@link #isValueNode}, - * {@link #isContainerNode} and {@link #isMissingNode} ever + * {@link #isContainer()} and {@link #isMissingNode} ever * returns true for any given node. * * @return True if this node is considered a value node; something that @@ -73,12 +73,12 @@ public interface TreeNode * Method that returns true for container nodes: Arrays and Objects. *
* Note: one and only one of methods {@link #isValueNode}, - * {@link #isContainerNode} and {@link #isMissingNode} ever + * {@link #isContainer()} and {@link #isMissingNode} ever * returns true for any given node. * * @return {@code True} for Array and Object nodes, {@code false} otherwise */ - boolean isContainerNode(); + boolean isContainer(); /** * Method that returns true for "virtual" nodes which represent @@ -86,7 +86,7 @@ public interface TreeNode * there is no actual node matching given criteria. *
* Note: one and only one of methods {@link #isValueNode}, - * {@link #isContainerNode} and {@link #isMissingNode} ever + * {@link #isContainer()} and {@link #isMissingNode} ever * returns true for any given node. * * @return {@code True} if this node represents a "missing" node @@ -96,7 +96,7 @@ public interface TreeNode /** * Method that returns true if this node is an Array node, false * otherwise. - * Note that if true is returned, {@link #isContainerNode} + * Note that if true is returned, {@link #isContainer()} * must also return true. * * @return {@code True} for Array nodes, {@code false} for everything else @@ -106,7 +106,7 @@ public interface TreeNode /** * Method that returns true if this node is an Object node, false * otherwise. - * Note that if true is returned, {@link #isContainerNode} + * Note that if true is returned, {@link #isContainer()} * must also return true. * * @return {@code True} for Object nodes, {@code false} for everything else diff --git a/src/test/java/tools/jackson/core/unittest/util/DelegatesTest.java b/src/test/java/tools/jackson/core/unittest/util/DelegatesTest.java index 703f17a327..2cd913094b 100644 --- a/src/test/java/tools/jackson/core/unittest/util/DelegatesTest.java +++ b/src/test/java/tools/jackson/core/unittest/util/DelegatesTest.java @@ -55,7 +55,7 @@ public boolean isValueNode() { } @Override - public boolean isContainerNode() { + public boolean isContainer() { return false; }