소스 검색

SEC-2964: Fix CsrfTokenArgumentResolver Javadoc

Rob Winch 10 년 전
부모
커밋
432123daa2
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 7 4
      web/src/main/java/org/springframework/security/web/method/annotation/CsrfTokenArgumentResolver.java

+ 7 - 4
web/src/main/java/org/springframework/security/web/method/annotation/CsrfTokenArgumentResolver.java

@@ -28,12 +28,15 @@ import org.springframework.web.method.support.ModelAndViewContainer;
  * {@link RestController} will resolve the current {@link CsrfToken}:
  *
  * <pre>
- * @RestController
+ * <code>
+ * &#064;RestController
  * public class MyController {
- *     @MessageMapping("/im")
+ *     &#064;MessageMapping("/im")
  *     public CsrfToken csrf(CsrfToken token) {
  *         return token;
  *     }
+ * }
+ * </code>
  * </pre>
  *
  *
@@ -44,7 +47,7 @@ public final class CsrfTokenArgumentResolver implements HandlerMethodArgumentRes
 
 	/*
 	 * (non-Javadoc)
-	 * 
+	 *
 	 * @see
 	 * org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter
 	 * (org.springframework.core.MethodParameter)
@@ -55,7 +58,7 @@ public final class CsrfTokenArgumentResolver implements HandlerMethodArgumentRes
 
 	/*
 	 * (non-Javadoc)
-	 * 
+	 *
 	 * @see
 	 * org.springframework.web.method.support.HandlerMethodArgumentResolver#resolveArgument
 	 * (org.springframework.core.MethodParameter,