Browse Source

fixed typo and JavaDoc polishing.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2110 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Sam Brannen 17 years ago
parent
commit
bcf3f83c1a
  1. 9
      org.springframework.web/src/main/java/org/springframework/web/bind/annotation/CookieValue.java

9
org.springframework.web/src/main/java/org/springframework/web/bind/annotation/CookieValue.java

@ -50,16 +50,17 @@ public @interface CookieValue {
/** /**
* Whether the header is required. * Whether the header is required.
* <p>Default is <code>true</code>, leading to an exception thrown in case * <p>Default is <code>true</code>, leading to an exception being thrown
* of the header missing in the request. Switch this to <code>false</code> * in case the header is missing in the request. Switch this to
* if you prefer a <code>null</value> in case of the header missing. * <code>false</code> if you prefer a <code>null</value> in case of the
* missing header.
* <p>Alternatively, provide a {@link #defaultValue() defaultValue}, * <p>Alternatively, provide a {@link #defaultValue() defaultValue},
* which implicitly sets this flag to <code>false</code>. * which implicitly sets this flag to <code>false</code>.
*/ */
boolean required() default true; boolean required() default true;
/** /**
* The default value to use as a fallback. Supplying a default value implicitely * The default value to use as a fallback. Supplying a default value implicitly
* sets {@link #required()} to false. * sets {@link #required()} to false.
*/ */
String defaultValue() default ""; String defaultValue() default "";

Loading…
Cancel
Save