diff --git a/src/ast/groovy/grails/plugin/cache/CustomCacheKeyGenerator.groovy b/src/ast/groovy/grails/plugin/cache/CustomCacheKeyGenerator.groovy index 97ce2f1e..c506ac5f 100644 --- a/src/ast/groovy/grails/plugin/cache/CustomCacheKeyGenerator.groovy +++ b/src/ast/groovy/grails/plugin/cache/CustomCacheKeyGenerator.groovy @@ -55,14 +55,9 @@ class CustomCacheKeyGenerator implements KeyGenerator, GrailsCacheKeyGenerator { int hashCode() { final int prime = 31 int result = 1 - result = prime * result - + ((simpleKey == null) ? 0 : simpleKey.hashCode()) - result = prime * result - + ((targetClassName == null) ? 0 : targetClassName - .hashCode()) - result = prime * result - + ((targetMethodName == null) ? 0 : targetMethodName - .hashCode()) + result = prime * result + ((simpleKey == null) ? 0 : simpleKey.hashCode()) + result = prime * result + ((targetClassName == null) ? 0 : targetClassName.hashCode()) + result = prime * result + ((targetMethodName == null) ? 0 : targetMethodName.hashCode()) result = prime * result + targetObjectHashCode return result } @@ -140,14 +135,9 @@ class CustomCacheKeyGenerator implements KeyGenerator, GrailsCacheKeyGenerator { int hashCode() { final int prime = 31 int result = 1 - result = prime * result - + ((simpleKey == null) ? 0 : simpleKey.hashCode()) - result = prime * result - + ((targetClassName == null) ? 0 : targetClassName - .hashCode()) - result = prime * result - + ((targetMethodName == null) ? 0 : targetMethodName - .hashCode()) + result = prime * result + ((simpleKey == null) ? 0 : simpleKey.hashCode()) + result = prime * result + ((targetClassName == null) ? 0 : targetClassName.hashCode()) + result = prime * result + ((targetMethodName == null) ? 0 : targetMethodName.hashCode()) result = prime * result + targetObjectHashCode return result }