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 authored and puneetbehl committed Mar 21, 2024
1 parent 5d2115a commit 9fe2554
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 @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 9fe2554

Please sign in to comment.