Skip to content

Commit 21b4526

Browse files
committed
accept UrlMap with any value type
1 parent b2ff0b1 commit 21b4526

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/handler/SimpleUrlHandlerMapping.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2010 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.
@@ -78,7 +78,7 @@ public void setMappings(Properties mappings) {
7878
* @param urlMap map with URLs as keys and beans as values
7979
* @see #setMappings
8080
*/
81-
public void setUrlMap(Map<String, Object> urlMap) {
81+
public void setUrlMap(Map<String, ?> urlMap) {
8282
this.urlMap.putAll(urlMap);
8383
}
8484

@@ -89,7 +89,7 @@ public void setUrlMap(Map<String, Object> urlMap) {
8989
* This is particularly useful for adding or overriding entries in child
9090
* bean definitions.
9191
*/
92-
public Map getUrlMap() {
92+
public Map<String, ?> getUrlMap() {
9393
return this.urlMap;
9494
}
9595

0 commit comments

Comments
 (0)