Skip to content

Commit

Permalink
test: do not check the charset
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna committed Nov 13, 2024
1 parent 415b81e commit 066243d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/test/java/org/elasticsearch/common/UUIDTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ private static int getUnpaddedBase64StringLength(int sizeInBytes) {
return (int) Math.ceil(sizeInBytes * 4.0 / 3.0);
}

private void verifyUUIDIsUrlSafe(String uuid) {
private void verifyUUIDIsUrlSafe(final String uuid) {
assertFalse("UUID should not contain padding characters: " + uuid, uuid.contains("="));
try {
BASE_64_URL_DECODER.decode(uuid);
} catch (IllegalArgumentException e) {
Expand Down

0 comments on commit 066243d

Please sign in to comment.