You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/06/09 22:46:00 UTC

[jira] [Work logged] (IMAGING-230) Properly close resources with try-with-resources in T4AndT6Compression

     [ https://issues.apache.org/jira/browse/IMAGING-230?focusedWorklogId=256560&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-256560 ]

ASF GitHub Bot logged work on IMAGING-230:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Jun/19 22:45
            Start Date: 09/Jun/19 22:45
    Worklog Time Spent: 10m 
      Work Description: kinow commented on pull request #48: IMAGING-230: Properly close resources with try-with-resources
URL: https://github.com/apache/commons-imaging/pull/48
 
 
   Just wrapped the code around a try in one method, and in the other one created two resources instead of one (properly closed) that received another (not properly closed) as constructor argument.
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 256560)
            Time Spent: 10m
    Remaining Estimate: 0h

> Properly close resources with try-with-resources in T4AndT6Compression
> ----------------------------------------------------------------------
>
>                 Key: IMAGING-230
>                 URL: https://issues.apache.org/jira/browse/IMAGING-230
>             Project: Commons Imaging
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha1
>            Reporter: Bruno P. Kinoshita
>            Assignee: Bruno P. Kinoshita
>            Priority: Minor
>             Fix For: 1.0-alpha2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> There is a couple of places in T4AndT5Compression where resources are not being properly closed in case of exceptions. Using try-with-resources can be applied here to fix that.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)