From 1aaf5262b1e11eec1e3f07dc5f2e7a191203c49a Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 21 Dec 2021 09:22:03 +0100 Subject: [PATCH] Polish formatting See gh-27835 --- .../src/main/java/org/springframework/http/HttpMethod.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/HttpMethod.java b/spring-web/src/main/java/org/springframework/http/HttpMethod.java index 1c85894bf7..327d379678 100644 --- a/spring-web/src/main/java/org/springframework/http/HttpMethod.java +++ b/spring-web/src/main/java/org/springframework/http/HttpMethod.java @@ -38,7 +38,6 @@ public final class HttpMethod implements Comparable, Serializable { private static final long serialVersionUID = -70133475680645360L; - /** * The HTTP method {@code GET}. * @see HTTP 1.1, section 9.3 @@ -87,10 +86,10 @@ public final class HttpMethod implements Comparable, Serializable { */ public static final HttpMethod TRACE = new HttpMethod("TRACE"); - private static final HttpMethod[] values = new HttpMethod[] { GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE }; - private static final Map mappings = Arrays.stream(values).collect(Collectors.toUnmodifiableMap(HttpMethod::name, Function.identity())); + private static final Map mappings = Arrays.stream(values) + .collect(Collectors.toUnmodifiableMap(HttpMethod::name, Function.identity())); private final String name;