Minor, non-functional improvements: fix a typo in javadoc, remove explicit 
'static' for enum


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/e8cb8efa
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/e8cb8efa
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/e8cb8efa

Branch: refs/heads/master
Commit: e8cb8efa5e2306ac426346775285b93561a9e4d7
Parents: 8113b6d
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Sat Jun 20 15:58:35 2015 +0300
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Sat Jun 20 15:58:35 2015 +0300

----------------------------------------------------------------------
 .../wicket/protocol/http/CsrfPreventionRequestCycleListener.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/e8cb8efa/wicket-core/src/main/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.java
 
b/wicket-core/src/main/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.java
index 2ec69ca..2b187b3 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.java
@@ -120,7 +120,7 @@ public class CsrfPreventionRequestCycleListener extends 
AbstractRequestCycleList
        /**
         * The action to perform when a missing or conflicting Origin header is 
detected.
         */
-       public static enum CsrfAction {
+       public enum CsrfAction {
                /** Aborts the request and throws an exception when a CSRF 
request is detected. */
                ABORT {
                        @Override
@@ -157,7 +157,7 @@ public class CsrfPreventionRequestCycleListener extends 
AbstractRequestCycleList
        private CsrfAction noOriginAction = CsrfAction.ALLOW;
 
        /**
-        * Action to perform when a conflicing Origin header is found.
+        * Action to perform when a conflicting Origin header is found.
         */
        private CsrfAction conflictingOriginAction = CsrfAction.ABORT;
 

Reply via email to