You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2006/07/16 23:55:17 UTC

svn commit: r422546 - /xerces/java/trunk/samples/xni/SecuritySupport.java

Author: mrglavas
Date: Sun Jul 16 14:55:16 2006
New Revision: 422546

URL: http://svn.apache.org/viewvc?rev=422546&view=rev
Log:
Eliminate creation of temporary Boolean objects.

Modified:
    xerces/java/trunk/samples/xni/SecuritySupport.java

Modified: xerces/java/trunk/samples/xni/SecuritySupport.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/xni/SecuritySupport.java?rev=422546&r1=422545&r2=422546&view=diff
==============================================================================
--- xerces/java/trunk/samples/xni/SecuritySupport.java (original)
+++ xerces/java/trunk/samples/xni/SecuritySupport.java Sun Jul 16 14:55:16 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2002,2004 The Apache Software Foundation.
+ * Copyright 2002,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.
@@ -130,7 +130,7 @@
         return ((Boolean)
                 AccessController.doPrivileged(new PrivilegedAction() {
                     public Object run() {
-                        return new Boolean(f.exists());
+                        return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                     }
                 })).booleanValue();
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org