Eliminate creation of temporary Boolean objects.

git-svn-id: https://svn.apache.org/repos/asf/xalan/java/trunk@1225326 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/org/apache/xalan/extensions/SecuritySupport12.java b/src/org/apache/xalan/extensions/SecuritySupport12.java
index 098c7a4..910de1e 100755
--- a/src/org/apache/xalan/extensions/SecuritySupport12.java
+++ b/src/org/apache/xalan/extensions/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xalan/lib/SecuritySupport12.java b/src/org/apache/xalan/lib/SecuritySupport12.java
index 312a094..e143603 100755
--- a/src/org/apache/xalan/lib/SecuritySupport12.java
+++ b/src/org/apache/xalan/lib/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xalan/lib/sql/SecuritySupport12.java b/src/org/apache/xalan/lib/sql/SecuritySupport12.java
index 3067cf3..4ebb3e4 100755
--- a/src/org/apache/xalan/lib/sql/SecuritySupport12.java
+++ b/src/org/apache/xalan/lib/sql/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xalan/xslt/SecuritySupport12.java b/src/org/apache/xalan/xslt/SecuritySupport12.java
index a047d6d..849b586 100755
--- a/src/org/apache/xalan/xslt/SecuritySupport12.java
+++ b/src/org/apache/xalan/xslt/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xalan/xsltc/cmdline/SecuritySupport12.java b/src/org/apache/xalan/xsltc/cmdline/SecuritySupport12.java
index bb6cb27..9b9c5d1 100755
--- a/src/org/apache/xalan/xsltc/cmdline/SecuritySupport12.java
+++ b/src/org/apache/xalan/xsltc/cmdline/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xalan/xsltc/compiler/SecuritySupport12.java b/src/org/apache/xalan/xsltc/compiler/SecuritySupport12.java
index aa67253..6de3a6a 100755
--- a/src/org/apache/xalan/xsltc/compiler/SecuritySupport12.java
+++ b/src/org/apache/xalan/xsltc/compiler/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xalan/xsltc/compiler/util/SecuritySupport12.java b/src/org/apache/xalan/xsltc/compiler/util/SecuritySupport12.java
index aa6fec3..304fb13 100755
--- a/src/org/apache/xalan/xsltc/compiler/util/SecuritySupport12.java
+++ b/src/org/apache/xalan/xsltc/compiler/util/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xalan/xsltc/dom/SecuritySupport12.java b/src/org/apache/xalan/xsltc/dom/SecuritySupport12.java
index 544830b..773b5bc 100755
--- a/src/org/apache/xalan/xsltc/dom/SecuritySupport12.java
+++ b/src/org/apache/xalan/xsltc/dom/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xalan/xsltc/runtime/SecuritySupport12.java b/src/org/apache/xalan/xsltc/runtime/SecuritySupport12.java
index ca94af3..4e29c12 100755
--- a/src/org/apache/xalan/xsltc/runtime/SecuritySupport12.java
+++ b/src/org/apache/xalan/xsltc/runtime/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xalan/xsltc/trax/SecuritySupport12.java b/src/org/apache/xalan/xsltc/trax/SecuritySupport12.java
index d838080..9f04695 100755
--- a/src/org/apache/xalan/xsltc/trax/SecuritySupport12.java
+++ b/src/org/apache/xalan/xsltc/trax/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xml/dtm/SecuritySupport12.java b/src/org/apache/xml/dtm/SecuritySupport12.java
index 489bc0b..8b18868 100644
--- a/src/org/apache/xml/dtm/SecuritySupport12.java
+++ b/src/org/apache/xml/dtm/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xml/dtm/ref/SecuritySupport12.java b/src/org/apache/xml/dtm/ref/SecuritySupport12.java
index 2258b7c..3b85e88 100755
--- a/src/org/apache/xml/dtm/ref/SecuritySupport12.java
+++ b/src/org/apache/xml/dtm/ref/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xml/serializer/SecuritySupport12.java b/src/org/apache/xml/serializer/SecuritySupport12.java
index 350372a..f5febba 100644
--- a/src/org/apache/xml/serializer/SecuritySupport12.java
+++ b/src/org/apache/xml/serializer/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xml/utils/SecuritySupport12.java b/src/org/apache/xml/utils/SecuritySupport12.java
index 181d95d..86e10d9 100644
--- a/src/org/apache/xml/utils/SecuritySupport12.java
+++ b/src/org/apache/xml/utils/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }
diff --git a/src/org/apache/xpath/functions/SecuritySupport12.java b/src/org/apache/xpath/functions/SecuritySupport12.java
index a746221..5781695 100644
--- a/src/org/apache/xpath/functions/SecuritySupport12.java
+++ b/src/org/apache/xpath/functions/SecuritySupport12.java
@@ -126,7 +126,7 @@
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {
                 public Object run() {
-                    return new Boolean(f.exists());
+                    return f.exists() ? Boolean.TRUE : Boolean.FALSE;
                 }
             })).booleanValue();
     }