Skip to content

Commit f3db6b9

Browse files
committed
Polish contribution
See gh-27031
1 parent a42540e commit f3db6b9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spring-web/src/main/java/org/springframework/web/bind/annotation/ResponseStatus.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -45,8 +45,9 @@
4545
* a return type and avoid the use of {@code @ResponseStatus} altogether.
4646
*
4747
* <p>Note that a controller class may also be annotated with
48-
* {@code @ResponseStatus} and is then inherited by all {@code @RequestMapping}
49-
* and {@code @ExceptionHandler} methods.
48+
* {@code @ResponseStatus} which is then inherited by all {@code @RequestMapping}
49+
* and {@code @ExceptionHandler} methods in that class and its subclasses unless
50+
* overridden by a local {@code @ResponseStatus} declaration on the method.
5051
*
5152
* @author Arjen Poutsma
5253
* @author Sam Brannen

0 commit comments

Comments
 (0)