You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2015/06/20 15:03:33 UTC

[2/2] wicket git commit: Minor, non-functional improvements: fix a typo in javadoc, remove explicit 'static' for enum

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 <mg...@apache.org>
Authored: Sat Jun 20 15:58:35 2015 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
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;