Skip to content

Commit

Permalink
fixed formatting of groovy code causing bytecode compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brucehyslop committed Nov 19, 2021
1 parent 9eaf1f6 commit 27077d5
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/ast/groovy/grails/plugin/cache/CustomCacheKeyGenerator.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,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
}
Expand Down Expand Up @@ -141,14 +136,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
}
Expand Down

0 comments on commit 27077d5

Please sign in to comment.