This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 5ed13c8833 Code clean-up - formatting. No functional change.
5ed13c8833 is described below

commit 5ed13c88339f2f91dff88db1a4224c19e0ea5d26
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Mar 17 16:28:34 2025 +0000

    Code clean-up - formatting. No functional change.
---
 java/org/apache/jasper/security/SecurityClassLoad.java |  3 +--
 java/org/apache/jasper/security/SecurityUtil.java      | 12 ++++++------
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/java/org/apache/jasper/security/SecurityClassLoad.java 
b/java/org/apache/jasper/security/SecurityClassLoad.java
index 3642847fdc..3faf2aa9d1 100644
--- a/java/org/apache/jasper/security/SecurityClassLoad.java
+++ b/java/org/apache/jasper/security/SecurityClassLoad.java
@@ -21,8 +21,7 @@ import org.apache.juli.logging.Log;
 import org.apache.juli.logging.LogFactory;
 
 /**
- * Static class used to preload java classes when using the
- * Java SecurityManager so that the defineClassInPackage
+ * Static class used to preload java classes when using the Java 
SecurityManager so that the defineClassInPackage
  * RuntimePermission does not trigger an AccessControlException.
  */
 public final class SecurityClassLoad {
diff --git a/java/org/apache/jasper/security/SecurityUtil.java 
b/java/org/apache/jasper/security/SecurityUtil.java
index 5b6f69de64..faddb89e4f 100644
--- a/java/org/apache/jasper/security/SecurityUtil.java
+++ b/java/org/apache/jasper/security/SecurityUtil.java
@@ -22,18 +22,18 @@ import org.apache.jasper.Constants;
  * Util class for Security related operations.
  */
 
-public final class SecurityUtil{
+public final class SecurityUtil {
 
     private static final boolean packageDefinitionEnabled =
-         System.getProperty("package.definition") == null ? false : true;
+            System.getProperty("package.definition") == null ? false : true;
 
     /**
-     * Return the <code>SecurityManager</code> only if Security is enabled AND
-     * package protection mechanism is enabled.
+     * Return the <code>SecurityManager</code> only if Security is enabled AND 
package protection mechanism is enabled.
+     *
      * @return <code>true</code> if package protection is enabled
      */
-    public static boolean isPackageProtectionEnabled(){
-        if (packageDefinitionEnabled && Constants.IS_SECURITY_ENABLED){
+    public static boolean isPackageProtectionEnabled() {
+        if (packageDefinitionEnabled && Constants.IS_SECURITY_ENABLED) {
             return true;
         }
         return false;


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to