You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by mb...@apache.org on 2023/01/01 17:21:55 UTC
[db-jdo] 03/07: JDO-823: Constant names should comply with a naming convention
This is an automated email from the ASF dual-hosted git repository.
mbo pushed a commit to branch JDO-823
in repository https://gitbox.apache.org/repos/asf/db-jdo.git
commit 9e8723152b19a39cf6efd4c216f96601a464f174
Author: Michael Bouschen <Mi...@akquinet.de>
AuthorDate: Sun Jan 1 17:15:37 2023 +0100
JDO-823: Constant names should comply with a naming convention
---
api/src/main/java/javax/jdo/LegacyJava.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/api/src/main/java/javax/jdo/LegacyJava.java b/api/src/main/java/javax/jdo/LegacyJava.java
index 301633c9..983b9846 100644
--- a/api/src/main/java/javax/jdo/LegacyJava.java
+++ b/api/src/main/java/javax/jdo/LegacyJava.java
@@ -46,9 +46,9 @@ import javax.jdo.spi.JDOPermission;
*/
public class LegacyJava {
- private static final boolean isSecurityDeprecated = initIsSecurityDeprecated();
+ private static final boolean IS_SECURITY_DEPRECATED = initIsSecurityDeprecated();
private static final Method getSecurityManager =
- isSecurityDeprecated ? null : findMethod("java.lang.System", "getSecurityManager");
+ IS_SECURITY_DEPRECATED ? null : findMethod("java.lang.System", "getSecurityManager");
private static final SecurityManager securityManager =
getSecurityManager == null ? null : new SecurityManager();
public static final Method doPrivilegedAction =
@@ -90,7 +90,7 @@ public class LegacyJava {
* @return 'true' if the security manager is deprecated or does not exist.
*/
public static boolean isSecurityManagerDeprecated() {
- return isSecurityDeprecated;
+ return IS_SECURITY_DEPRECATED;
}
/**
@@ -137,7 +137,7 @@ public class LegacyJava {
}
private static Method findMethod(String cName, String mName, Class<?>... args) {
- if (isSecurityDeprecated) {
+ if (IS_SECURITY_DEPRECATED) {
return null;
}
try {
@@ -149,7 +149,7 @@ public class LegacyJava {
}
private static Method findMethod(String cName, String mName, String cNameAlt, Class<?>... args) {
- if (isSecurityDeprecated) {
+ if (IS_SECURITY_DEPRECATED) {
cName = cNameAlt;
}
try {