Fix typo in Javadoc

This commit simply fixes typo in Javadoc.
This commit is contained in:
Johnny Lim 2016-10-21 09:17:33 +09:00 committed by Rob Winch
parent 94e580fe64
commit 50b72dddbc

View File

@ -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