Skip to content

Commit 39583e3

Browse files
committed
removed useless this references
1 parent 841a301 commit 39583e3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/mybatis/caches/memcached/AbstractPropertySetter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,27 +102,27 @@ public AbstractPropertySetter(final String propertyKey, final String propertyNam
102102
* @param memcachedConfiguration the {@link MemcachedConfiguration}
103103
*/
104104
public final void set(Properties config, MemcachedConfiguration memcachedConfiguration) {
105-
String propertyValue = config.getProperty(this.propertyKey);
105+
String propertyValue = config.getProperty(propertyKey);
106106
T value;
107107

108108
try {
109109
value = this.convert(propertyValue);
110110
if (value == null) {
111-
value = this.defaultValue;
111+
value = defaultValue;
112112
}
113113
} catch (Throwable e) {
114-
value = this.defaultValue;
114+
value = defaultValue;
115115
}
116116

117117
try {
118-
this.propertyWriterMethod.invoke(memcachedConfiguration, value);
118+
propertyWriterMethod.invoke(memcachedConfiguration, value);
119119
} catch (Exception e) {
120120
throw new RuntimeException("Impossible to set property '"
121-
+ this.propertyName
121+
+ propertyName
122122
+ "' with value '"
123123
+ value
124124
+ "', extracted from ('"
125-
+ this.propertyKey
125+
+ propertyKey
126126
+ "'="
127127
+ propertyValue
128128
+ ")", e);

0 commit comments

Comments
 (0)