Skip to content

Commit 8aa9a32

Browse files
committed
Fix #1401: rename TreeNode.isContainerNode() as isContainer()
1 parent d83012a commit 8aa9a32

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

release-notes/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ JSON library.
5252
#1380: Change 3.0 to use `module-info.java` directly (and not via Moditect)
5353
#1385: Create `jackson-core-[VERSION]-tests.jar` to contain shared
5454
test utility classes
55+
#1401: Rename `TreeNode.isContainerNode()` as `isContainer()` (3.0)
5556
- Rename `JsonGenerator.Feature.AUTO_CLOSE_JSON_CONTENT` as `AUTO_CLOSE_CONTENT`
5657
- Add `TreeCodec.nullNode()`, `TreeNode.isNull()` methods
5758
- Change the way `JsonLocation.NA` is included in exception messages

src/main/java/tools/jackson/core/TreeNode.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public interface TreeNode
6161
* and null values from JSON.
6262
*<p>
6363
* Note: one and only one of methods {@link #isValueNode},
64-
* {@link #isContainerNode} and {@link #isMissingNode} ever
64+
* {@link #isContainer()} and {@link #isMissingNode} ever
6565
* returns true for any given node.
6666
*
6767
* @return True if this node is considered a value node; something that
@@ -73,20 +73,20 @@ public interface TreeNode
7373
* Method that returns true for container nodes: Arrays and Objects.
7474
*<p>
7575
* Note: one and only one of methods {@link #isValueNode},
76-
* {@link #isContainerNode} and {@link #isMissingNode} ever
76+
* {@link #isContainer()} and {@link #isMissingNode} ever
7777
* returns true for any given node.
7878
*
7979
* @return {@code True} for Array and Object nodes, {@code false} otherwise
8080
*/
81-
boolean isContainerNode();
81+
boolean isContainer();
8282

8383
/**
8484
* Method that returns true for "virtual" nodes which represent
8585
* missing entries constructed by path accessor methods when
8686
* there is no actual node matching given criteria.
8787
*<p>
8888
* Note: one and only one of methods {@link #isValueNode},
89-
* {@link #isContainerNode} and {@link #isMissingNode} ever
89+
* {@link #isContainer()} and {@link #isMissingNode} ever
9090
* returns true for any given node.
9191
*
9292
* @return {@code True} if this node represents a "missing" node
@@ -96,7 +96,7 @@ public interface TreeNode
9696
/**
9797
* Method that returns true if this node is an Array node, false
9898
* otherwise.
99-
* Note that if true is returned, {@link #isContainerNode}
99+
* Note that if true is returned, {@link #isContainer()}
100100
* must also return true.
101101
*
102102
* @return {@code True} for Array nodes, {@code false} for everything else
@@ -106,7 +106,7 @@ public interface TreeNode
106106
/**
107107
* Method that returns true if this node is an Object node, false
108108
* otherwise.
109-
* Note that if true is returned, {@link #isContainerNode}
109+
* Note that if true is returned, {@link #isContainer()}
110110
* must also return true.
111111
*
112112
* @return {@code True} for Object nodes, {@code false} for everything else

src/test/java/tools/jackson/core/unittest/util/DelegatesTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public boolean isValueNode() {
5555
}
5656

5757
@Override
58-
public boolean isContainerNode() {
58+
public boolean isContainer() {
5959
return false;
6060
}
6161

0 commit comments

Comments
 (0)