This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 7c3dfabf1f Code clean-up - formatting. No functional change.
7c3dfabf1f is described below
commit 7c3dfabf1f9a3c62393b567e4cf573f5c6182c90
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Mar 17 16:28:17 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: [email protected]
For additional commands, e-mail: [email protected]