Uploaded image for project: 'Apache InLong'
  1. Apache InLong
  2. INLONG-9

Remove some unnecessary code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.3.0
    • None

    Description

      1. 'String.valueOf()'

      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();
      }

       

      com.tencent.tubemq.server.master.web.action.screen.Webapi#execute

       

      2. {String}.substring()

      if (path.startsWith("/")) {
          path = path.substring(1, path.length());
      }

      com.tencent.tubemq.server.master.web.simplemvc.RequestContext#normalizePath

       

      3.unuse init boolean

      private boolean isOverTLS = false;
      

      com.tencent.tubemq.corerpc.netty.NettyRpcServer  isOverTLS 

       

       

      PR https://github.com/apache/incubator-tubemq/pull/3

      Attachments

        Issue Links

          Activity

            People

              lan.liang lan.liang
              lan.liang lan.liang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m