Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15F61DF0E for ; Mon, 15 Oct 2012 16:03:21 +0000 (UTC) Received: (qmail 19365 invoked by uid 500); 15 Oct 2012 16:03:20 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 19308 invoked by uid 500); 15 Oct 2012 16:03:20 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 19281 invoked by uid 99); 15 Oct 2012 16:03:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2012 16:03:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2012 16:03:17 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 274D423888EA for ; Mon, 15 Oct 2012 16:02:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1398354 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java Date: Mon, 15 Oct 2012 16:02:33 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121015160233.274D423888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Mon Oct 15 16:02:32 2012 New Revision: 1398354 URL: http://svn.apache.org/viewvc?rev=1398354&view=rev Log: Explicit unboxing Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java?rev=1398354&r1=1398353&r2=1398354&view=diff ============================================================================== --- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java (original) +++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java Mon Oct 15 16:02:32 2012 @@ -192,15 +192,15 @@ public class CSVFormat implements Serial * @throws IllegalStateException */ void validate() throws IllegalStateException { - if (quoteChar != null && delimiter == quoteChar) { + if (quoteChar != null && delimiter == quoteChar.charValue()) { throw new IllegalStateException("The quoteChar character and the delimiter cannot be the same ('" + quoteChar + "')"); } - if (escape != null && delimiter == escape) { + if (escape != null && delimiter == escape.charValue()) { throw new IllegalStateException("The escape character and the delimiter cannot be the same ('" + escape + "')"); } - if (commentStart != null && delimiter == commentStart) { + if (commentStart != null && delimiter == commentStart.charValue()) { throw new IllegalStateException("The comment start character and the delimiter cannot be the same ('" + commentStart + "')"); }