You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2021/07/28 11:32:00 UTC

[GitHub] [incubator-inlong] dockerzhang opened a new issue #737: [INLONG-138] Optimize core module test case code

dockerzhang opened a new issue #737:
URL: https://github.com/apache/incubator-inlong/issues/737


   <p>1. Optimize the use of assertions<br/>
    2. Fix possible null pointer exception</p>
   <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
   <pre class="code-java">
   SSLEngine sslEngine = <span class="code-keyword">null</span>;
   <span class="code-keyword">try</span> {
       <span class="code-comment">// create engine
   </span>    sslEngine = TSSLEngineUtil.createSSLEngine(keyStorePath, trustStorePath,
       keyStorePassword, trustStorePassword, <span class="code-keyword">true</span>, <span class="code-keyword">false</span>);
   } <span class="code-keyword">catch</span> (Throwable e) {
       e.printStackTrace();
   }
   <span class="code-comment">// If the above code is a field, it may cause the object sslEngine is <span class="code-keyword">null</span>
   </span><span class="code-object">boolean</span> needClientAuth = sslEngine.getNeedClientAuth();
   </pre>
   </div></div>
   <i>JIRA link - <a href="https://issues.apache.org/jira/browse/INLONG-138">[INLONG-138]</a> created by viviel</i>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] dockerzhang closed issue #737: [INLONG-138] Optimize core module test case code

Posted by GitBox <gi...@apache.org>.
dockerzhang closed issue #737:
URL: https://github.com/apache/incubator-inlong/issues/737


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org