Skip to content

Commit 63ec395

Browse files
authored
Issue #59 Fix visibility mismatch in Utils.getPath method signature (#80)
Changed method visibility from public to package-private to match the parameter type JsonValueImpl which is package-private. This resolves the visibility mismatch where a public method was using a package-private type in its signature, making the method unusable from outside the package while maintaining the intended internal usage within the json package. - Fixed visibility mismatch by changing public to package-private - Maintains all existing functionality for internal usage - Aligns with proper encapsulation principles
1 parent 150e69e commit 63ec395

File tree

1 file changed

+1
-1
lines changed
  • json-java21/src/main/java/jdk/sandbox/internal/util/json

1 file changed

+1
-1
lines changed

json-java21/src/main/java/jdk/sandbox/internal/util/json/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static JsonAssertionException composeTypeError(JsonValue jv, String expec
113113
+ ((jv instanceof JsonValueImpl jvi && jvi.doc() != null) ? JsonPath.getPath(jvi) : ""));
114114
}
115115

116-
public static String getPath(JsonValueImpl jvi) {
116+
static String getPath(JsonValueImpl jvi) {
117117
return JsonPath.getPath(jvi);
118118
}
119119

0 commit comments

Comments
 (0)