Skip to content

Commit 4ecb861

Browse files
committed
Merge pull request spring-projects#811 from izeye/patch-2
* patch-2: Fix typo
2 parents 8184419 + b8d7d46 commit 4ecb861

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spring-core/src/main/java/org/springframework/core/env/ReadOnlySystemAttributesMap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public boolean containsKey(Object key) {
5050
public String get(Object key) {
5151
if (!(key instanceof String)) {
5252
throw new IllegalArgumentException(
53-
"Key of type [" + (key != null ? key.getClass().getName() : "null") +
54-
"] must be an instance of java.lang.String.");
53+
"Type of key [" + (key != null ? key.getClass().getName() : "null") +
54+
"] must be java.lang.String.");
5555
}
5656
return this.getSystemAttribute((String) key);
5757
}

0 commit comments

Comments
 (0)