Skip to content

Commit 7206a23

Browse files
committed
Consistent attribute value spelling for PATH_ATTRIBUTE
See gh-24945
1 parent 83996b1 commit 7206a23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-web/src/main/java/org/springframework/web/util/ServletRequestPathUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
public abstract class ServletRequestPathUtils {
4040

4141
/** Name of Servlet request attribute that holds the parsed {@link RequestPath}. */
42-
public static final String PATH_ATTRIBUTE = ServletRequestPathUtils.class.getName() + ".path";
42+
public static final String PATH_ATTRIBUTE = ServletRequestPathUtils.class.getName() + ".PATH";
4343

4444

4545
/**

spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public class UrlPathHelper {
5858
* {@link #getLookupPathForRequest resolved} lookupPath.
5959
* @since 5.3
6060
*/
61-
public static final String PATH_ATTRIBUTE = UrlPathHelper.class.getName() + ".path";
61+
public static final String PATH_ATTRIBUTE = UrlPathHelper.class.getName() + ".PATH";
6262

63-
private static boolean isServlet4Present =
63+
private static final boolean isServlet4Present =
6464
ClassUtils.isPresent("javax.servlet.http.HttpServletMapping",
6565
UrlPathHelper.class.getClassLoader());
6666

0 commit comments

Comments
 (0)