Return-Path: Delivered-To: apmail-xml-commons-cvs-archive@www.apache.org Received: (qmail 58566 invoked from network); 16 Jul 2006 22:03:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jul 2006 22:03:24 -0000 Received: (qmail 67949 invoked by uid 500); 16 Jul 2006 22:03:24 -0000 Delivered-To: apmail-xml-commons-cvs-archive@xml.apache.org Received: (qmail 67927 invoked by uid 500); 16 Jul 2006 22:03:24 -0000 Mailing-List: contact commons-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list commons-cvs@xml.apache.org Received: (qmail 67916 invoked by uid 99); 16 Jul 2006 22:03:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jul 2006 15:03:24 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jul 2006 15:03:23 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 2ED6B1A981A; Sun, 16 Jul 2006 15:02:57 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r422550 - in /xml/commons/trunk/java/external/src/javax/xml: datatype/SecuritySupport.java parsers/SecuritySupport.java transform/SecuritySupport.java validation/SecuritySupport.java xpath/SecuritySupport.java Date: Sun, 16 Jul 2006 22:02:56 -0000 To: commons-cvs@xml.apache.org From: mrglavas@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060716220257.2ED6B1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: mrglavas Date: Sun Jul 16 15:02:55 2006 New Revision: 422550 URL: http://svn.apache.org/viewvc?rev=422550&view=rev Log: Eliminate creation of temporary Boolean objects. Modified: xml/commons/trunk/java/external/src/javax/xml/datatype/SecuritySupport.java xml/commons/trunk/java/external/src/javax/xml/parsers/SecuritySupport.java xml/commons/trunk/java/external/src/javax/xml/transform/SecuritySupport.java xml/commons/trunk/java/external/src/javax/xml/validation/SecuritySupport.java xml/commons/trunk/java/external/src/javax/xml/xpath/SecuritySupport.java Modified: xml/commons/trunk/java/external/src/javax/xml/datatype/SecuritySupport.java URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/datatype/SecuritySupport.java?rev=422550&r1=422549&r2=422550&view=diff ============================================================================== --- xml/commons/trunk/java/external/src/javax/xml/datatype/SecuritySupport.java (original) +++ xml/commons/trunk/java/external/src/javax/xml/datatype/SecuritySupport.java Sun Jul 16 15:02:55 2006 @@ -1,5 +1,5 @@ /* - * Copyright 2003-2004 The Apache Software Foundation. + * Copyright 2003-2004,2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -95,7 +95,7 @@ return ((Boolean) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { - return new Boolean(f.exists()); + return f.exists() ? Boolean.TRUE : Boolean.FALSE; } })).booleanValue(); } Modified: xml/commons/trunk/java/external/src/javax/xml/parsers/SecuritySupport.java URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/parsers/SecuritySupport.java?rev=422550&r1=422549&r2=422550&view=diff ============================================================================== --- xml/commons/trunk/java/external/src/javax/xml/parsers/SecuritySupport.java (original) +++ xml/commons/trunk/java/external/src/javax/xml/parsers/SecuritySupport.java Sun Jul 16 15:02:55 2006 @@ -95,7 +95,7 @@ return ((Boolean) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { - return new Boolean(f.exists()); + return f.exists() ? Boolean.TRUE : Boolean.FALSE; } })).booleanValue(); } Modified: xml/commons/trunk/java/external/src/javax/xml/transform/SecuritySupport.java URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/transform/SecuritySupport.java?rev=422550&r1=422549&r2=422550&view=diff ============================================================================== --- xml/commons/trunk/java/external/src/javax/xml/transform/SecuritySupport.java (original) +++ xml/commons/trunk/java/external/src/javax/xml/transform/SecuritySupport.java Sun Jul 16 15:02:55 2006 @@ -95,7 +95,7 @@ return ((Boolean) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { - return new Boolean(f.exists()); + return f.exists() ? Boolean.TRUE : Boolean.FALSE; } })).booleanValue(); } Modified: xml/commons/trunk/java/external/src/javax/xml/validation/SecuritySupport.java URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/validation/SecuritySupport.java?rev=422550&r1=422549&r2=422550&view=diff ============================================================================== --- xml/commons/trunk/java/external/src/javax/xml/validation/SecuritySupport.java (original) +++ xml/commons/trunk/java/external/src/javax/xml/validation/SecuritySupport.java Sun Jul 16 15:02:55 2006 @@ -150,7 +150,7 @@ return ((Boolean) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { - return new Boolean(f.exists()); + return f.exists() ? Boolean.TRUE : Boolean.FALSE; } })).booleanValue(); } Modified: xml/commons/trunk/java/external/src/javax/xml/xpath/SecuritySupport.java URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/xpath/SecuritySupport.java?rev=422550&r1=422549&r2=422550&view=diff ============================================================================== --- xml/commons/trunk/java/external/src/javax/xml/xpath/SecuritySupport.java (original) +++ xml/commons/trunk/java/external/src/javax/xml/xpath/SecuritySupport.java Sun Jul 16 15:02:55 2006 @@ -150,7 +150,7 @@ return ((Boolean) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { - return new Boolean(f.exists()); + return f.exists() ? Boolean.TRUE : Boolean.FALSE; } })).booleanValue(); }