directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-realm git commit: FC-105 - [fortress-realm] - utility classes should not have public or default constructor
Date Sun, 24 May 2015 13:28:46 GMT
Repository: directory-fortress-realm
Updated Branches:
  refs/heads/master 74b0260f7 -> 1dceb9d51


FC-105 - [fortress-realm] - utility classes should not have public or default constructor


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/commit/1dceb9d5
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/tree/1dceb9d5
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/diff/1dceb9d5

Branch: refs/heads/master
Commit: 1dceb9d51ea5a97f8ac8136cbfa03358b2722003
Parents: 74b0260
Author: Shawn McKinney <smckinney@apache.org>
Authored: Sun May 24 08:28:34 2015 -0500
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Sun May 24 08:28:34 2015 -0500

----------------------------------------------------------------------
 .../java/org/apache/directory/fortress/realm/GlobalIds.java     | 5 +++++
 .../apache/directory/fortress/realm/J2eePolicyMgrFactory.java   | 5 +++++
 .../java/org/apache/directory/fortress/realm/util/CpUtil.java   | 5 +++++
 3 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/1dceb9d5/impl/src/main/java/org/apache/directory/fortress/realm/GlobalIds.java
----------------------------------------------------------------------
diff --git a/impl/src/main/java/org/apache/directory/fortress/realm/GlobalIds.java b/impl/src/main/java/org/apache/directory/fortress/realm/GlobalIds.java
index 55edb68..fce9858 100644
--- a/impl/src/main/java/org/apache/directory/fortress/realm/GlobalIds.java
+++ b/impl/src/main/java/org/apache/directory/fortress/realm/GlobalIds.java
@@ -5,6 +5,11 @@ package org.apache.directory.fortress.realm;
  */
 public class GlobalIds
 {
+    // disallow construction
+    private GlobalIds()
+    {
+    }
+
     public static int CONTEXT_SERIALIZATION_FAILED = 201;
     public static int CONTEXT_DESERIALIZATION_FAILED_IO = 202;
     public static int CONTEXT_DESERIALIZATION_FAILED_UNSUPPORTED_ENCODING = 203;

http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/1dceb9d5/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrFactory.java
----------------------------------------------------------------------
diff --git a/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrFactory.java
b/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrFactory.java
index fbfed6d..d72a798 100644
--- a/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrFactory.java
+++ b/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrFactory.java
@@ -36,6 +36,11 @@ import org.slf4j.LoggerFactory;
  */
 public class J2eePolicyMgrFactory
 {
+    // disallow construction
+    private J2eePolicyMgrFactory()
+    {
+    }
+
     /**
      * When this optional tag, {@code realmImplementation}, is placed in Fortress properties,
its class name will be the default {@code org.apache.directory.fortress.core.security.RealmMgr}
instance used.
      */

http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/1dceb9d5/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java
----------------------------------------------------------------------
diff --git a/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java b/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java
index 60ce41e..0a254ee 100644
--- a/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java
+++ b/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java
@@ -41,6 +41,11 @@ public class CpUtil
     private static final String WIN_SLASH = "\\";
     private static final String UNIX_SEPARATOR = ":";
 
+    // disallow construction
+    private CpUtil()
+    {
+    }
+
     /**
      * This method is used by Tomcat Realm Proxy to retrieve REALM_CLASSPATH from the Server.xml
config file.
      *


Mime
View raw message