Skip to content

Commit e33ac10

Browse files
committed
Fix ensureExpectedToken()
1 parent c2c3796 commit e33ac10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/rest-high-level/src/main/java/org/elasticsearch/client/security/DeletePrivilegesResponse.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public static DeletePrivilegesResponse fromXContent(XContentParser parser) throw
6060
if (token == null) {
6161
token = parser.nextToken();
6262
}
63-
ensureExpectedToken(token, XContentParser.Token.START_OBJECT, parser::getTokenLocation);
63+
ensureExpectedToken(XContentParser.Token.START_OBJECT, token, parser::getTokenLocation);
6464
token = parser.nextToken();
65-
ensureExpectedToken(token, XContentParser.Token.FIELD_NAME, parser::getTokenLocation);
65+
ensureExpectedToken(XContentParser.Token.FIELD_NAME, token, parser::getTokenLocation);
6666
final String application = parser.currentName();
6767
final List<String> foundAndDeletedPrivileges = new ArrayList<>();
6868
token = parser.nextToken();

0 commit comments

Comments
 (0)