From 9c8e3d482cfbbdeaa9d12c4c5541683e819d706b Mon Sep 17 00:00:00 2001 From: Michael Laritz Date: Fri, 1 May 2020 22:16:42 -0400 Subject: [PATCH] Updated the validateKey exception message The single quotes were different styles. Suggest keeping them the same so that it prevents confusion if this exception occurs. --- src/main/java/net/spy/memcached/util/StringUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/spy/memcached/util/StringUtils.java b/src/main/java/net/spy/memcached/util/StringUtils.java index 41ab3e16f..c3b298540 100644 --- a/src/main/java/net/spy/memcached/util/StringUtils.java +++ b/src/main/java/net/spy/memcached/util/StringUtils.java @@ -135,7 +135,7 @@ public static void validateKey(final String key, final boolean binary) { for (byte b : keyBytes) { if (b == ' ' || b == '\n' || b == '\r' || b == 0) { throw new IllegalArgumentException( - "Key contains invalid characters: ``" + key + "''"); + "Key contains invalid characters: ''" + key + "''"); } } }