Browse Source

Fix typo in Javadoc

This commit simply fixes typo in Javadoc.
Johnny Lim 8 years ago
parent
commit
50b72dddbc

+ 3 - 3
web/src/main/java/org/springframework/security/web/csrf/CookieCsrfTokenRepository.java

@@ -29,7 +29,7 @@ import org.springframework.util.StringUtils;
 import org.springframework.web.util.WebUtils;
 import org.springframework.web.util.WebUtils;
 
 
 /**
 /**
- * A {@link CsrfTokenRepository} that persist the CSRF token in a cookie named
+ * A {@link CsrfTokenRepository} that persists the CSRF token in a cookie named
  * "XSRF-TOKEN" and reads from the header "X-XSRF-TOKEN" following the conventions of
  * "XSRF-TOKEN" and reads from the header "X-XSRF-TOKEN" following the conventions of
  * AngularJS. When using with AngularJS be sure to use {@link #withHttpOnlyFalse()}.
  * AngularJS. When using with AngularJS be sure to use {@link #withHttpOnlyFalse()}.
  *
  *
@@ -163,7 +163,7 @@ public final class CookieCsrfTokenRepository implements CsrfTokenRepository {
 	 * Factory method to conveniently create an instance that has
 	 * Factory method to conveniently create an instance that has
 	 * {@link #setCookieHttpOnly(boolean)} set to false.
 	 * {@link #setCookieHttpOnly(boolean)} set to false.
 	 *
 	 *
-	 * @return and instance of CookieCsrfTokenRepository with
+	 * @return an instance of CookieCsrfTokenRepository with
 	 * {@link #setCookieHttpOnly(boolean)} set to false
 	 * {@link #setCookieHttpOnly(boolean)} set to false
 	 */
 	 */
 	public static CookieCsrfTokenRepository withHttpOnlyFalse() {
 	public static CookieCsrfTokenRepository withHttpOnlyFalse() {
@@ -177,7 +177,7 @@ public final class CookieCsrfTokenRepository implements CsrfTokenRepository {
 	}
 	}
 
 
 	/**
 	/**
-	 * Set the path that the Cookie will be created with. This will will override the default functionality which uses the
+	 * Set the path that the Cookie will be created with. This will override the default functionality which uses the
 	 * request context as the path.
 	 * request context as the path.
 	 *
 	 *
 	 * @param path the path to use
 	 * @param path the path to use