You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2015/04/15 21:41:20 UTC
[15/39] jclouds git commit: Make constants final classes instead of
interfaces
Make constants final classes instead of interfaces
This commit prohibits implementation of the empty interface and
instantiation of the class. Refer to _Effective Java_ item 19 for
more background.
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/1e48a1da
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/1e48a1da
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/1e48a1da
Branch: refs/heads/master
Commit: 1e48a1daeae90b8cc5b08dec3578f58c5c30e28a
Parents: e2e61c4
Author: Andrew Gaul <ga...@apache.org>
Authored: Fri May 16 09:49:16 2014 -0700
Committer: Andrew Gaul <ga...@apache.org>
Committed: Fri May 16 09:49:16 2014 -0700
----------------------------------------------------------------------
.../src/main/java/org/jclouds/oauth/v2/OAuthConstants.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/1e48a1da/apis/oauth/src/main/java/org/jclouds/oauth/v2/OAuthConstants.java
----------------------------------------------------------------------
diff --git a/apis/oauth/src/main/java/org/jclouds/oauth/v2/OAuthConstants.java b/apis/oauth/src/main/java/org/jclouds/oauth/v2/OAuthConstants.java
index fad18bb..d3953f3 100644
--- a/apis/oauth/src/main/java/org/jclouds/oauth/v2/OAuthConstants.java
+++ b/apis/oauth/src/main/java/org/jclouds/oauth/v2/OAuthConstants.java
@@ -25,7 +25,7 @@ import java.util.Map;
*
* @author David Alves
*/
-public class OAuthConstants {
+public final class OAuthConstants {
/**
* Selected algorithm when a signature or mac isn't required.
@@ -73,4 +73,8 @@ public class OAuthConstants {
* The (optional) set of additional claims to use, provided in Map<String,String> form
*/
public static final String ADDITIONAL_CLAIMS = "jclouds.oauth.additional-claims";
+
+ private OAuthConstants() {
+ throw new AssertionError("intentionally unimplemented");
+ }
}