We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a67eb3 commit ad086b6Copy full SHA for ad086b6
1 file changed
JSON-java/src/org/json/JSONType.java
@@ -8,7 +8,7 @@
8
*/
9
abstract class JSONType {
10
11
- protected JSONType container = null;
+ private JSONType container = null;
12
13
/**
14
* @return The container in the JSON containment tree or {@code null} if this is the root.
@@ -22,7 +22,7 @@ public JSONType getContainer() {
22
* @param container - the container object, <em>which then assumes responsibility over the containment link</em>.
23
* @return This JSON object, for chaining.
24
25
- public <T extends JSONType> T setContainer(T container) {
+ protected <T extends JSONType> T setContainer(T container) {
26
this.container = container;
27
return container; // for chaining (with correct generic type)
28
}
0 commit comments