Skip to content

Commit

Permalink
use currentName as getCurrentName is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
kasmarian committed May 25, 2024
1 parent 724db12 commit 6f8c17e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public String filter(final String body) {
while ((nextToken = parser.nextToken()) != null) {

generator.copyCurrentEvent(parser);
if (nextToken == JsonToken.FIELD_NAME && fields.contains(parser.getCurrentName())) {
if (nextToken == JsonToken.FIELD_NAME && fields.contains(parser.currentName())) {
nextToken = parser.nextToken();
generator.writeString(replacement);
if (!nextToken.isScalarValue()) {
Expand Down

0 comments on commit 6f8c17e

Please sign in to comment.