[ 
https://issues.apache.org/jira/browse/LUCENE-6608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14601835#comment-14601835
 ] 

ASF subversion and git services commented on LUCENE-6608:
---------------------------------------------------------

Commit 1687626 from [~thetaphi] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1687626 ]

Merged revision(s) 1687624 from lucene/dev/trunk:
LUCENE-6608: Fix potential resource leak in BigramDictionary

> Potential resource leak in BigramDictionary.java
> ------------------------------------------------
>
>                 Key: LUCENE-6608
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6608
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>    Affects Versions: Trunk
>            Reporter: Rishabh Patel
>            Assignee: Uwe Schindler
>            Priority: Minor
>              Labels: github-import
>
> The input and output object streams are being closed in the try block. These 
> resources will not be closed if an exception occurs in the try block
> We can use the finally block to explicitly close these resources or use the 
> new try-with-resources construct where they are implicitly closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to