You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2016/03/04 18:30:26 UTC
[14/14] incubator-geode git commit: Synchronize overridden getCause()
and getPrincipal()
Synchronize overridden getCause() and getPrincipal()
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/f00184c0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/f00184c0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/f00184c0
Branch: refs/heads/feature/GEODE-949-2
Commit: f00184c04eac8494d5987c99dceeab926b851ce3
Parents: a96f2d0
Author: Kirk Lund <kl...@apache.org>
Authored: Fri Mar 4 09:29:39 2016 -0800
Committer: Kirk Lund <kl...@apache.org>
Committed: Fri Mar 4 09:29:39 2016 -0800
----------------------------------------------------------------------
.../com/gemstone/gemfire/security/GemFireSecurityException.java | 2 +-
.../java/com/gemstone/gemfire/security/NotAuthorizedException.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/f00184c0/geode-core/src/main/java/com/gemstone/gemfire/security/GemFireSecurityException.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/security/GemFireSecurityException.java b/geode-core/src/main/java/com/gemstone/gemfire/security/GemFireSecurityException.java
index 40be542..1c4ab6c 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/security/GemFireSecurityException.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/security/GemFireSecurityException.java
@@ -83,7 +83,7 @@ public class GemFireSecurityException extends GemFireException {
}
@Override
- public final Throwable getCause() {
+ public final synchronized Throwable getCause() {
return (this.cause == this ? null : this.cause);
}
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/f00184c0/geode-core/src/main/java/com/gemstone/gemfire/security/NotAuthorizedException.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/security/NotAuthorizedException.java b/geode-core/src/main/java/com/gemstone/gemfire/security/NotAuthorizedException.java
index 27c612f..0aecbad 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/security/NotAuthorizedException.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/security/NotAuthorizedException.java
@@ -106,7 +106,7 @@ public class NotAuthorizedException extends GemFireSecurityException {
*
* @return the {@code principal} for which authorization failed.
*/
- public Principal getPrincipal() {
+ public synchronized Principal getPrincipal() {
return this.principal;
}