Skip to content

Commit b6f86e1

Browse files
committed
Changed canonicalKey ref from variable to method
1 parent 75ddbc6 commit b6f86e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evcache-core/src/main/java/com/netflix/evcache/EVCacheKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private String getHashKey(HashingAlgorithm hashingAlgorithm, Boolean shouldEncod
125125
final String key = hashingAlgorithm.toString()+ maxDigestBytes != null ? maxDigestBytes.toString() : "-" + maxHashLength != null ? maxHashLength.toString() : "-" + encoder != null ? encoder : "-";
126126
String val = hashedKeysByAlgorithm.get(key);
127127
if(val == null) {
128-
val = KeyHasher.getHashedKeyEncoded(canonicalKey, hashingAlgorithm, maxDigestBytes, maxHashLength, encoder);
128+
val = KeyHasher.getHashedKeyEncoded(getCanonicalKey(false), hashingAlgorithm, maxDigestBytes, maxHashLength, encoder);
129129
hashedKeysByAlgorithm.put(key , val);
130130
}
131131
if (log.isDebugEnabled()) log.debug("getHashKey : " + val);

0 commit comments

Comments
 (0)