Skip to content

Commit 98d267e

Browse files
committed
Fix visibility of the constructor of the abstract classes
1 parent 6249e7e commit 98d267e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/main/java/io/github/orangain/jsonmatch/pattern/ArrayPatternNode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public abstract class ArrayPatternNode extends JsonPatternNode {
1515
* Constructor of the JSON array pattern node.
1616
* @param expected The string representation of the expected JSON array pattern.
1717
*/
18-
public ArrayPatternNode(@NotNull String expected) {
18+
protected ArrayPatternNode(@NotNull String expected) {
1919
super(expected);
2020
}
2121

src/main/java/io/github/orangain/jsonmatch/pattern/JsonPatternNode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public abstract class JsonPatternNode {
2020
* Constructor of the JSON pattern node.
2121
* @param expected The string representation of the expected JSON pattern.
2222
*/
23-
public JsonPatternNode(@NotNull String expected) {
23+
protected JsonPatternNode(@NotNull String expected) {
2424
this.expected = expected;
2525
}
2626

src/main/java/io/github/orangain/jsonmatch/pattern/ObjectPatternNode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public abstract class ObjectPatternNode extends JsonPatternNode {
1010
* Constructor of the JSON object pattern node.
1111
* @param expected The string representation of the expected JSON object pattern.
1212
*/
13-
public ObjectPatternNode(@NotNull String expected) {
13+
protected ObjectPatternNode(@NotNull String expected) {
1414
super(expected);
1515
}
1616
}

src/main/java/io/github/orangain/jsonmatch/pattern/ValuePatternNode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public abstract class ValuePatternNode extends JsonPatternNode {
1010
* Constructor of the JSON simple pattern node.
1111
* @param expected The string representation of the expected JSON simple pattern.
1212
*/
13-
public ValuePatternNode(@NotNull String expected) {
13+
protected ValuePatternNode(@NotNull String expected) {
1414
super(expected);
1515
}
1616
}

0 commit comments

Comments
 (0)