Skip to content

Commit f105d7d

Browse files
committed
style(groovy): update ast sources for UnnecessaryGString
1 parent b0edc2d commit f105d7d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

grails-cache/src/ast/groovy/grails/plugin/cache/CustomCacheKeyGenerator.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CustomCacheKeyGenerator implements KeyGenerator, GrailsCacheKeyGenerator {
4242
this.innerKeyGenerator = new SimpleKeyGenerator()
4343
}
4444

45-
@SuppressWarnings("serial")
45+
@SuppressWarnings('serial')
4646
private static final class CacheKey implements Serializable {
4747
final String targetClassName
4848
final String targetMethodName

grails-cache/src/ast/groovy/org/grails/plugin/cache/compiler/AbstractCacheTransformation.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ abstract class AbstractCacheTransformation extends AbstractMethodDecoratingTrans
121121
}
122122

123123
protected VariableExpression declareAndInitializeParameterValueMap(AnnotationNode annotationNode, MethodNode methodToCache, BlockStatement codeBlock) {
124-
if(annotationNode.getMember("key") instanceof ClosureExpression) {
124+
if(annotationNode.getMember('key') instanceof ClosureExpression) {
125125
// if a key generator is specified don't do anything
126126
return null
127127
}
@@ -148,7 +148,7 @@ abstract class AbstractCacheTransformation extends AbstractMethodDecoratingTrans
148148
if(TenantTransform.hasTenantAnnotation(methodToCache)) {
149149
ArgumentListExpression putArgs = args(
150150
constX(GormProperties.TENANT_IDENTITY),
151-
callD(classX(Tenants), "currentId")
151+
callD(classX(Tenants), 'currentId')
152152
)
153153
MethodCallExpression mce = callX(parameterMapVar, 'put', putArgs)
154154
mce.methodTarget = mapPutMethod
@@ -257,7 +257,7 @@ abstract class AbstractCacheTransformation extends AbstractMethodDecoratingTrans
257257
// return originalMethodCall.call()
258258

259259
Statement ifShouldCacheMethodCallStatement = ifS(
260-
notX(callX(conditionMember, "call")),
260+
notX(callX(conditionMember, 'call')),
261261
returnS(originalMethodCallExpr)
262262
)
263263
newMethodBody.addStatement(ifShouldCacheMethodCallStatement)

grails-cache/src/ast/groovy/org/grails/plugin/cache/compiler/CachePutTransformation.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class CachePutTransformation extends AbstractCacheTransformation {
7676
cachingBlock.addStatement(
7777
block(
7878
declS(originalValueExpr, originalMethodCallExpr),
79-
stmt(callD(cacheDeclaration,"put", args(cacheKeyDeclaration, originalValueExpr))),
79+
stmt(callD(cacheDeclaration, 'put', args(cacheKeyDeclaration, originalValueExpr))),
8080
returnS(originalValueExpr)
8181
)
8282
)

grails-cache/src/ast/groovy/org/grails/plugin/cache/compiler/CacheableTransformation.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class CacheableTransformation extends AbstractCacheTransformation {
9696
// ValueWrapper $_cache_valueWrapper = $_cache_cacheVariable.get($_cache_cacheKey);
9797
VariableExpression cacheValueWrapper = varX(CACHE_VALUE_WRAPPER_LOCAL_VARIABLE_NAME, make(Cache.ValueWrapper))
9898
cachingBlock.addStatement(
99-
declS(cacheValueWrapper, callD(cacheDeclaration, "get", cacheKeyDeclaration))
99+
declS(cacheValueWrapper, callD(cacheDeclaration, 'get', cacheKeyDeclaration))
100100
)
101101

102102
// if($_cache_valueWrapper != null) {
@@ -109,10 +109,10 @@ class CacheableTransformation extends AbstractCacheTransformation {
109109
VariableExpression originalValueExpr = varX(CACHE_ORIGINAL_METHOD_RETURN_VALUE_LOCAL_VARIABLE_NAME)
110110
cachingBlock.addStatement(
111111
ifElseS(notNullX(cacheValueWrapper),
112-
returnS( callD(cacheValueWrapper, "get")),
112+
returnS( callD(cacheValueWrapper, 'get')),
113113
block(
114114
declS(originalValueExpr, originalMethodCallExpr),
115-
stmt(callD(cacheDeclaration,"put", args(cacheKeyDeclaration, originalValueExpr))),
115+
stmt(callD(cacheDeclaration, 'put', args(cacheKeyDeclaration, originalValueExpr))),
116116
returnS(originalValueExpr)
117117
)
118118
)

0 commit comments

Comments
 (0)