Skip to content

Commit

Permalink
fix forbidden API
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Alfonsi <petealft@amazon.com>
  • Loading branch information
Peter Alfonsi committed Jun 14, 2024
1 parent 4d7d64d commit 3e5a124
Showing 1 changed file with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,25 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws

@Override
public String toString() {
return String.format(
"%s=%d, %s=%d, %s=%d, %s=%d, %s=%d",
Fields.HIT_COUNT,
hits,
Fields.MISS_COUNT,
misses,
Fields.EVICTIONS,
evictions,
Fields.SIZE_IN_BYTES,
sizeInBytes,
Fields.ITEM_COUNT,
items
);
return Fields.HIT_COUNT
+ "="
+ hits
+ ", "
+ Fields.MISS_COUNT
+ "="
+ misses
+ ", "
+ Fields.EVICTIONS
+ "="
+ evictions
+ ", "
+ Fields.SIZE_IN_BYTES
+ "="
+ sizeInBytes
+ ", "
+ Fields.ITEM_COUNT
+ "="
+ items;
}

/**
Expand Down

0 comments on commit 3e5a124

Please sign in to comment.