From d5d9c66ed96671efd1b440e7b3f6b1c0de80720f Mon Sep 17 00:00:00 2001 From: zhangliang Date: Sun, 24 Sep 2023 13:01:28 +0800 Subject: [PATCH] Simply refactor --- .../expr/core/fixture/CustomInlineExpressionParserFixture.java | 2 +- .../infra/expr/espresso/EspressoInlineExpressionParser.java | 2 +- .../infra/expr/groovy/GroovyInlineExpressionParser.java | 2 +- .../infra/expr/purelist/PureListInlineExpressionParser.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infra/expr/core/src/test/java/org/apache/shardingsphere/infra/expr/core/fixture/CustomInlineExpressionParserFixture.java b/infra/expr/core/src/test/java/org/apache/shardingsphere/infra/expr/core/fixture/CustomInlineExpressionParserFixture.java index 3f0f8d5a59dba..02a6088740cd9 100644 --- a/infra/expr/core/src/test/java/org/apache/shardingsphere/infra/expr/core/fixture/CustomInlineExpressionParserFixture.java +++ b/infra/expr/core/src/test/java/org/apache/shardingsphere/infra/expr/core/fixture/CustomInlineExpressionParserFixture.java @@ -29,7 +29,7 @@ public final class CustomInlineExpressionParserFixture implements InlineExpressi @Override public void init(final Properties props) { - this.inlineExpression = props.getProperty(INLINE_EXPRESSION_KEY); + inlineExpression = props.getProperty(INLINE_EXPRESSION_KEY); } @Override diff --git a/infra/expr/type/espresso/src/main/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParser.java b/infra/expr/type/espresso/src/main/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParser.java index ed896ce592a65..0e1839b4f3673 100644 --- a/infra/expr/type/espresso/src/main/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParser.java +++ b/infra/expr/type/espresso/src/main/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParser.java @@ -54,7 +54,7 @@ public final class EspressoInlineExpressionParser implements InlineExpressionPar @Override public void init(final Properties props) { - this.inlineExpression = props.getProperty(INLINE_EXPRESSION_KEY); + inlineExpression = props.getProperty(INLINE_EXPRESSION_KEY); } @Override diff --git a/infra/expr/type/groovy/src/main/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParser.java b/infra/expr/type/groovy/src/main/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParser.java index 5e3442844d31c..92eb078a3c4c5 100644 --- a/infra/expr/type/groovy/src/main/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParser.java +++ b/infra/expr/type/groovy/src/main/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParser.java @@ -53,7 +53,7 @@ public final class GroovyInlineExpressionParser implements InlineExpressionParse @Override public void init(final Properties props) { - this.inlineExpression = props.getProperty(INLINE_EXPRESSION_KEY); + inlineExpression = props.getProperty(INLINE_EXPRESSION_KEY); } @Override diff --git a/infra/expr/type/purelist/src/main/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParser.java b/infra/expr/type/purelist/src/main/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParser.java index 2fa0ca62fa2e9..f84e5a7fee13a 100644 --- a/infra/expr/type/purelist/src/main/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParser.java +++ b/infra/expr/type/purelist/src/main/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParser.java @@ -36,7 +36,7 @@ public final class PureListInlineExpressionParser implements InlineExpressionPar @Override public void init(final Properties props) { - this.inlineExpression = props.getProperty(INLINE_EXPRESSION_KEY); + inlineExpression = props.getProperty(INLINE_EXPRESSION_KEY); } @Override