This is an automated email from the ASF dual-hosted git repository.

pandaapo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new 46f7c5b88 Avoid unnecessary boxing by using plain == for primitive 
types (#4485)
46f7c5b88 is described below

commit 46f7c5b88d552dc7b2c162e1647447b377515cba
Author: HeeHunLee <[email protected]>
AuthorDate: Sun Oct 15 18:17:50 2023 +0800

    Avoid unnecessary boxing by using plain == for primitive types (#4485)
---
 .../common/config/convert/converter/BaseDataTypeConverter.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/convert/converter/BaseDataTypeConverter.java
 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/convert/converter/BaseDataTypeConverter.java
index 053580c46..fac41fea1 100644
--- 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/convert/converter/BaseDataTypeConverter.java
+++ 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/convert/converter/BaseDataTypeConverter.java
@@ -42,7 +42,7 @@ public class BaseDataTypeConverter {
         @Override
         public Boolean convert(ConvertInfo convertInfo) {
             String value = (String) convertInfo.getValue();
-            if (Objects.equals(value.length(), 1)) {
+            if (value.length() == 1) {
                 return Objects.equals(convertInfo.getValue(), "1") ? 
Boolean.TRUE : Boolean.FALSE;
             }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to