Skip to content

Commit 0598eaf

Browse files
committed
polishing
1 parent b5e8269 commit 0598eaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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.
@@ -60,9 +60,9 @@ protected String[] determineUrlsForHandler(String beanName) {
6060
urls.add(beanName);
6161
}
6262
String[] aliases = getApplicationContext().getAliases(beanName);
63-
for (int i = 0; i < aliases.length; i++) {
64-
if (aliases[i].startsWith("/")) {
65-
urls.add(aliases[i]);
63+
for (String alias : aliases) {
64+
if (alias.startsWith("/")) {
65+
urls.add(alias);
6666
}
6767
}
6868
return StringUtils.toStringArray(urls);

0 commit comments

Comments
 (0)