[ 
https://issues.apache.org/jira/browse/INLONG-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated INLONG-9:
--------------------------------
    Labels: pull-request-available  (was: )

> Remove some unnecessary code 
> -----------------------------
>
>                 Key: INLONG-9
>                 URL: https://issues.apache.org/jira/browse/INLONG-9
>             Project: Apache InLong
>          Issue Type: Improvement
>            Reporter: lan.liang
>            Assignee: lan.liang
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.3.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 1. 'String.valueOf()'
> {noformat}
> String strCallbackFun = req.getParameter("callback");
> if ((TStringUtils.isNotEmpty(strCallbackFun))
>         && (strCallbackFun.length() <= 
> TBaseConstants.META_MAX_CALLBACK_STRING_LENGTH)
>         && 
> (strCallbackFun.matches(TBaseConstants.META_TMP_CALLBACK_STRING_VALUE))) {
>     strCallbackFun = String.valueOf(strCallbackFun).trim();
> }{noformat}
>  
> com.tencent.tubemq.server.master.web.action.screen.Webapi#execute
>  
> 2. \{String}.substring()
> {noformat}
> if (path.startsWith("/")) {
>     path = path.substring(1, path.length());
> }{noformat}
> com.tencent.tubemq.server.master.web.simplemvc.RequestContext#normalizePath
>  
> 3.unuse init boolean
> {noformat}
> private boolean isOverTLS = false;
> {noformat}
> com.tencent.tubemq.corerpc.netty.NettyRpcServer  isOverTLS 
>  
>  
> PR [https://github.com/apache/incubator-tubemq/pull/3]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to