Always use 'this.' when accessing fields
Ensure that `this.` is used consistently when accessing class fields. Issue: SPR-16968
This commit is contained in:
committed by
Juergen Hoeller
parent
eeebd51f57
commit
0b53c1096a
@@ -159,10 +159,10 @@ public class CaffeineCache extends AbstractValueAdaptingCache {
|
||||
@Override
|
||||
public Object apply(Object o) {
|
||||
try {
|
||||
return toStoreValue(valueLoader.call());
|
||||
return toStoreValue(this.valueLoader.call());
|
||||
}
|
||||
catch (Exception ex) {
|
||||
throw new ValueRetrievalException(o, valueLoader, ex);
|
||||
throw new ValueRetrievalException(o, this.valueLoader, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ class CacheResolverAdapter implements CacheResolver {
|
||||
* that this instance is using.
|
||||
*/
|
||||
protected javax.cache.annotation.CacheResolver getTarget() {
|
||||
return target;
|
||||
return this.target;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -48,12 +48,12 @@ class DefaultCacheKeyInvocationContext<A extends Annotation>
|
||||
|
||||
@Override
|
||||
public CacheInvocationParameter[] getKeyParameters() {
|
||||
return keyParameters.clone();
|
||||
return this.keyParameters.clone();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CacheInvocationParameter getValueParameter() {
|
||||
return valueParameter;
|
||||
return this.valueParameter;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ public class FreeMarkerConfigurationFactory {
|
||||
* @see #setTemplateLoaderPath
|
||||
*/
|
||||
public void setConfigLocation(Resource resource) {
|
||||
configLocation = resource;
|
||||
this.configLocation = resource;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user