diff --git a/spring-web/src/main/java/org/springframework/http/client/JdkClientHttpRequest.java b/spring-web/src/main/java/org/springframework/http/client/JdkClientHttpRequest.java index 971722b75d89..ae302bbf3d84 100644 --- a/spring-web/src/main/java/org/springframework/http/client/JdkClientHttpRequest.java +++ b/spring-web/src/main/java/org/springframework/http/client/JdkClientHttpRequest.java @@ -176,7 +176,7 @@ else if (contentLength == 0) { /** * By default, {@link HttpRequest} does not allow {@code Connection}, * {@code Content-Length}, {@code Expect}, {@code Host}, or {@code Upgrade} - * headers to be set, but this can be overriden with the + * headers to be set, but this can be overridden with the * {@code jdk.httpclient.allowRestrictedHeaders} system property. * @see jdk.internal.net.http.common.Utils#getDisallowedHeaders() */ diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java index c50ec22af3cf..90854983bffa 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -495,7 +495,7 @@ public String toString() { } protected String formatViewName() { - return (getBeanName() != null ? "name '" + getBeanName() + "'" : "[" + getClass().getSimpleName() + "]"); + return (getBeanName() != null ? "name [" + getBeanName() + "]" : "[" + getClass().getSimpleName() + "]"); } }