You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2022/12/01 09:05:33 UTC

[GitHub] [incubator-eventmesh] Alonexc opened a new issue, #2333: [Enhancement] Method may fail to close stream [PropertiesUtils]

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

   ### 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/205007442-97dd1d18-fe6b-4b38-8455-8f730ceecbb2.png)
   located at:
   eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/PropertiesUtils.java line 91
   analysis and explanation:
   The method creates an IO stream object, does not assign it to any fields, pass it to other methods that might close it, or return it, and does not appear to close the stream on all paths out of the method.  This may result in a file descriptor leak.  It is generally a good idea to use a finally block to ensure that streams are closed.
   
   
   ### Describe the solution you'd like
   
   referenceļ¼š
   ![image](https://user-images.githubusercontent.com/91315508/205007557-f3d2ee22-1555-4bcc-865a-0d1113c09afe.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: dev-unsubscribe@eventmesh.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


[GitHub] [incubator-eventmesh] jonyangx closed issue #2333: [Enhancement] Method may fail to close stream [PropertiesUtils]

Posted by GitBox <gi...@apache.org>.
jonyangx closed issue #2333: [Enhancement] Method may fail to close stream [PropertiesUtils]
URL: https://github.com/apache/incubator-eventmesh/issues/2333


-- 
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@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org