Skip to content

Commit ad086b6

Browse files
committed
changed member visibility
1 parent 1a67eb3 commit ad086b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

JSON-java/src/org/json/JSONType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
abstract class JSONType {
1010

11-
protected JSONType container = null;
11+
private JSONType container = null;
1212

1313
/**
1414
* @return The container in the JSON containment tree or {@code null} if this is the root.
@@ -22,7 +22,7 @@ public JSONType getContainer() {
2222
* @param container - the container object, <em>which then assumes responsibility over the containment link</em>.
2323
* @return This JSON object, for chaining.
2424
*/
25-
public <T extends JSONType> T setContainer(T container) {
25+
protected <T extends JSONType> T setContainer(T container) {
2626
this.container = container;
2727
return container; // for chaining (with correct generic type)
2828
}

0 commit comments

Comments
 (0)