@@ -463,7 +463,7 @@ public boolean isHttpOnly() {
463
463
* @throws NumberFormatException if the cookie is a known field with a numerical value (eg Max-Age), but the value is
464
464
* not able to be parsed.
465
465
*
466
- * @since Servlet 5.1
466
+ * @since Servlet 6.0
467
467
*/
468
468
public void setAttribute (String name , String value ) {
469
469
if (name == null || name .isEmpty ()) {
@@ -501,11 +501,11 @@ private void putAttribute(String name, String value) {
501
501
* except for <code>version</code>. E.g. when <code>cookie.setAttribute("domain", domain)</code> is invoked, then
502
502
* <code>cookie.getDomain()</code> should return exactly that value, and vice versa.
503
503
*
504
- * @param name the name of the cookie attribute to set the value for , case insensitive
504
+ * @param name the name of the cookie attribute to get the value of , case insensitive
505
505
*
506
506
* @return the value of the cookie attribute associated with the given name
507
507
*
508
- * @since Servlet 5.1
508
+ * @since Servlet 6.0
509
509
*/
510
510
public String getAttribute (String name ) {
511
511
return attributes == null ? null : attributes .get (name );
@@ -518,7 +518,7 @@ public String getAttribute(String name) {
518
518
* @return an unmodifiable mapping of all cookie attributes set via <code>setAttribute(String, String)</code> as well as
519
519
* any predefined setter method, except for <code>version</code>
520
520
*
521
- * @since Servlet 5.1
521
+ * @since Servlet 6.0
522
522
*/
523
523
public Map <String , String > getAttributes () {
524
524
return attributes == null ? Collections .emptyMap () : Collections .unmodifiableMap (attributes );
0 commit comments