Skip to content

Commit

Permalink
Merge pull request #58 from gravity9-tech/feature/57_public_access_js…
Browse files Browse the repository at this point in the history
…on_path_parser

#57 Added public access to JsonPathParser
  • Loading branch information
piotr-bugara-gravity9 authored Jul 27, 2023
2 parents 787e1e0 + 61e0839 commit a3f6bc2
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 a3f6bc2

Please sign in to comment.