Alonexc opened a new issue, #3162:
URL: https://github.com/apache/incubator-eventmesh/issues/3162

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Enhancement Request
   
   
![image](https://user-images.githubusercontent.com/91315508/219286838-ecd8ab7f-20f8-49b2-b056-0dc157d2b9ef.png)
   located at:
   
eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/client/common/TCPClient.java
 line 124
   analysis and explanation:
   This method assigns a Boxed boolean constant to a primitive boolean 
variable, or assigns a primitive boolean constant to a Boxed boolean variable.  
 Use the correct constant for the variable desired.   Use
   boolean b = true;
   boolean b = false;
   or
   Boolean b = Boolean.TRUE;
   Boolean b = Boolean.FALSE;
   Be aware that this boxing happens automatically when you might not expect it.
   has two cases of this needless autoboxing.   This can be made more efficient 
by simply substituting in the constant values:
   Map  statusMap = ...
   public Boolean someMethod() {
   statusMap.  put("foo", Boolean.TRUE);
   return Boolean.FALSE;
   }
   
   ### Describe the solution you'd like
   
   
![image](https://user-images.githubusercontent.com/91315508/219286924-e807ee6f-ed76-44c2-a330-995f6595fdfc.png)
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to