mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 22:59:03 +00:00
Use 'Map.getOrDefault' rather than explicit check with fallback
See gh-32072
This commit is contained in:
@@ -375,7 +375,7 @@ class SimpleAliasRegistryTests {
|
||||
|
||||
@Override
|
||||
public String resolveStringValue(String str) {
|
||||
return (this.placeholders.containsKey(str) ? this.placeholders.get(str) : str);
|
||||
return (this.placeholders.getOrDefault(str, str));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user