-
Notifications
You must be signed in to change notification settings - Fork 191
Added getters for JsonPatch and Operations #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,14 @@ protected JsonPatchOperation(final String op, final JsonPointer path) | |
public abstract JsonNode apply(final JsonNode node) | ||
throws JsonPatchException; | ||
|
||
public String getOp() { | ||
return op; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this protectively copy the string? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't have thought this is necessary as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, you're right. |
||
} | ||
|
||
public JsonPointer getPath() { | ||
return path; | ||
} | ||
|
||
@Override | ||
public abstract String toString(); | ||
} |
Uh oh!
There was an error while loading. Please reload this page.