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 4964197CC for ; Fri, 16 Mar 2012 03:12:01 +0000 (UTC) Received: (qmail 74195 invoked by uid 500); 16 Mar 2012 03:12:00 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 74085 invoked by uid 500); 16 Mar 2012 03:11:58 -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 74063 invoked by uid 99); 16 Mar 2012 03:11:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2012 03:11:58 +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; Fri, 16 Mar 2012 03:11:57 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2C0182388A2C for ; Fri, 16 Mar 2012 03:11:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1301321 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java Date: Fri, 16 Mar 2012 03:11:37 -0000 To: commits@commons.apache.org From: bayard@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120316031137.2C0182388A2C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bayard Date: Fri Mar 16 03:11:36 2012 New Revision: 1301321 URL: http://svn.apache.org/viewvc?rev=1301321&view=rev Log: Applying Benedikt Ritter's patch to fix the Checkstyle error in SerializationUtils - LANG-793 Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java?rev=1301321&r1=1301320&r2=1301321&view=diff ============================================================================== --- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java (original) +++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java Fri Mar 16 03:11:36 2012 @@ -280,10 +280,11 @@ public class SerializationUtils { return Class.forName(name, false, Thread.currentThread().getContextClassLoader()); } catch (ClassNotFoundException cnfe) { Class cls = primitiveTypes.get(name); - if (cls != null) + if (cls != null) { return cls; - else + } else { throw cnfe; + } } } }