Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40C0D19BB2 for ; Fri, 15 Apr 2016 14:00:32 +0000 (UTC) Received: (qmail 54374 invoked by uid 500); 15 Apr 2016 14:00:31 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 54154 invoked by uid 500); 15 Apr 2016 14:00:31 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 54123 invoked by uid 99); 15 Apr 2016 14:00:31 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Apr 2016 14:00:31 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 60C1F2C1F61 for ; Fri, 15 Apr 2016 14:00:31 +0000 (UTC) Date: Fri, 15 Apr 2016 14:00:31 +0000 (UTC) From: "Pratiyush (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CSV-176) Resource leak: StringWriter is never closed in CSVFormat.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CSV-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pratiyush updated CSV-176: -------------------------- Summary: Resource leak: StringWriter is never closed in CSVFormat.java (was: Resource leak: StringWriter is never closed in CSVFormate.java) > Resource leak: StringWriter is never closed in CSVFormat.java > ------------------------------------------------------------- > > Key: CSV-176 > URL: https://issues.apache.org/jira/browse/CSV-176 > Project: Commons CSV > Issue Type: Improvement > Reporter: Pratiyush > Priority: Minor > > public String format(final Object... values) { > final StringWriter out = new StringWriter(); > try { > new CSVPrinter(out, this).printRecord(values); > return out.toString().trim(); > } catch (final IOException e) { > // should not happen because a StringWriter does not do IO. > throw new IllegalStateException(e); > } > } -- This message was sent by Atlassian JIRA (v6.3.4#6332)