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/08 18:04:04 UTC
[db-jdo] 06/18: 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-2
in repository https://gitbox.apache.org/repos/asf/db-jdo.git
commit 003d73c8333e022f0a35b2ddea3fda9e5c4b0d94
Author: Michael Bouschen <Mi...@akquinet.de>
AuthorDate: Sat Jan 7 20:38:36 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 {