mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-07 15:39:29 +00:00
Merge pull request #32072 from mnhock
* pr/32072: Use 'Map.getOrDefault' rather than explicit check with fallback Closes 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