Skip to content

Commit

Permalink
#57 Added public access to JsonPathParser
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Bugara committed Jul 27, 2023
1 parent 787e1e0 commit 61e0839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/gravity9/jsonpatch/JsonPathParser.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.gravity9.jsonpatch;

class JsonPathParser {
public class JsonPathParser {

private JsonPathParser() {}

Expand All @@ -12,7 +12,7 @@ private JsonPathParser() {}
* @return String containing JsonPath expression
* @throws JsonPatchException throws when invalid JsonPointer expression provided
*/
static String parsePathToJsonPath(String path) throws JsonPatchException {
public static String parsePathToJsonPath(String path) throws JsonPatchException {
if (path.startsWith("$")) {
return path;
} else if (path.contains("?")) {
Expand Down

0 comments on commit 61e0839

Please sign in to comment.