From 299cd635b19064ab7f08534e4c2f9b6940585534 Mon Sep 17 00:00:00 2001 From: zhangliang Date: Sun, 24 Sep 2023 11:50:06 +0800 Subject: [PATCH] Revise javadoc on InlineExpressionParser --- .../infra/expr/spi/InlineExpressionParser.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/infra/expr/spi/src/main/java/org/apache/shardingsphere/infra/expr/spi/InlineExpressionParser.java b/infra/expr/spi/src/main/java/org/apache/shardingsphere/infra/expr/spi/InlineExpressionParser.java index 7578f5f8f2d4e..c19b083957e3e 100644 --- a/infra/expr/spi/src/main/java/org/apache/shardingsphere/infra/expr/spi/InlineExpressionParser.java +++ b/infra/expr/spi/src/main/java/org/apache/shardingsphere/infra/expr/spi/InlineExpressionParser.java @@ -36,10 +36,9 @@ public interface InlineExpressionParser extends TypedSPI { /** * This method is used to return the inlineExpression String itself. In some cases, you may want to do - * additional processing on inlineExpression to return a specific value, in which case you need to override this - * method. + * additional processing on inlineExpression to return a specific value, in which case you need to override this method. * - * @return result processed inline expression defined by the SPI implementation. + * @return result processed inline expression defined by the SPI implementation */ String handlePlaceHolder(); @@ -54,8 +53,7 @@ public interface InlineExpressionParser extends TypedSPI { * Evaluate closure. * * @return closure - * @throws UnsupportedOperationException In most cases, users should not implement this method, and the return value - * of this method can only be a Groovy Closure. + * @throws UnsupportedOperationException In most cases, users should not implement this method, and the return value of this method can only be a Groovy closure */ default Closure evaluateClosure() { throw new UnsupportedOperationException("This SPI implementation does not support the use of this method.");