Browse Source

Fix grammar in inline comment in HttpStatus

See gh-26842
pull/26940/head
Sam Brannen 5 years ago
parent
commit
fae484855b
  1. 2
      spring-web/src/main/java/org/springframework/http/HttpStatus.java

2
spring-web/src/main/java/org/springframework/http/HttpStatus.java

@ -557,7 +557,7 @@ public enum HttpStatus { @@ -557,7 +557,7 @@ public enum HttpStatus {
*/
@Nullable
public static HttpStatus resolve(int statusCode) {
// used cached VALUES instead of values() to prevent array allocation
// Use cached VALUES instead of values() to prevent array allocation.
for (HttpStatus status : VALUES) {
if (status.value == statusCode) {
return status;

Loading…
Cancel
Save