Skip to content

Commit bacad08

Browse files
Unnecessary cast
1 parent 742d469 commit bacad08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/github/bordertech/config/DefaultConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ private boolean substitute(final String aKey) {
808808
try {
809809
substituting.add(aKey);
810810

811-
String value = (String) backing.get(aKey);
811+
String value = backing.get(aKey);
812812
if (value == null) {
813813
return madeChange;
814814
}
@@ -1400,12 +1400,12 @@ protected String get(final String key, final String defolt) {
14001400
protected String get(final String key) {
14011401
// Check environment property
14021402
if (useEnvironmentKey(key)) {
1403-
String result = (String) backing.get(getEnvironmentKey(key));
1403+
String result = backing.get(getEnvironmentKey(key));
14041404
if (result != null) {
14051405
return result;
14061406
}
14071407
}
1408-
return (String) backing.get(key);
1408+
return backing.get(key);
14091409
}
14101410

14111411
/**
@@ -1449,7 +1449,7 @@ protected void handlePropertiesChanged() {
14491449
* Check if the environment property has been set.
14501450
*/
14511451
protected void checkEnvironmentProperty() {
1452-
String env = (String) backing.get(ENVIRONMENT_PROPERTY);
1452+
String env = backing.get(ENVIRONMENT_PROPERTY);
14531453
currentEnvironment = (env == null || env.isEmpty()) ? null : env;
14541454
}
14551455

0 commit comments

Comments
 (0)