From 3f3ca3327d8d9de2193545badbe5a5a11299f045 Mon Sep 17 00:00:00 2001 From: Bruce Hyslop Date: Fri, 19 Nov 2021 19:16:29 +1100 Subject: [PATCH] fixed formatting of groovy code causing bytecode compilation errors --- .../cache/CustomCacheKeyGenerator.groovy | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) 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 }