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

xxyu pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 6496e014f0ef0f48b5d66cdb8ab3e6ed8d2830ec
Author: cli2 <ss_leec...@pku.edu.cn>
AuthorDate: Thu Dec 1 11:19:44 2022 +0800

    [KYLIN-5310] adjust code format
---
 .../src/main/java/org/apache/kylin/rest/controller/NUserController.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/metadata-server/src/main/java/org/apache/kylin/rest/controller/NUserController.java
 
b/src/metadata-server/src/main/java/org/apache/kylin/rest/controller/NUserController.java
index 4dee368683..37b64a1917 100644
--- 
a/src/metadata-server/src/main/java/org/apache/kylin/rest/controller/NUserController.java
+++ 
b/src/metadata-server/src/main/java/org/apache/kylin/rest/controller/NUserController.java
@@ -645,7 +645,7 @@ public class NUserController extends NBasicController 
implements ApplicationList
                 ((ServletRequestAttributes) 
Objects.requireNonNull(RequestContextHolder.getRequestAttributes()))
                         .getRequest();
         //todo other session store-type
-        if (type.equals("jbdc")) {
+        if ("jbdc".equals(type)) {
             
request.getSession().setMaxInactiveInterval(env.getJdbcSessionMaxInactiveInterval());
         }
     }

Reply via email to