Skip to content

Commit 77c5ed6

Browse files
mmoayyedolegz
authored andcommitted
fix: remove unnecessary cast
Signed-off-by: Misagh Moayyed <[email protected]> Resolves #3150
1 parent 64dadf0 commit 77c5ed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/function/RoutingFunctionEnvironmentPostProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
3838
name.contains(RoutingFunction.FUNCTION_NAME + "|") ||
3939
name.contains("|" + RoutingFunction.FUNCTION_NAME)
4040
)) {
41-
((StandardEnvironment) environment).getSystemProperties()
41+
environment.getSystemProperties()
4242
.putIfAbsent("spring.cloud.function.routing.enabled", "true");
4343
}
4444
// perhaps mpve it to separate class as it doesn't have much to do with RoutingFunction
45-
((StandardEnvironment) environment).getSystemProperties()
45+
environment.getSystemProperties()
4646
.putIfAbsent("spring.cloud.function.configuration.default.copy-input-headers", "true");
4747
}
4848

0 commit comments

Comments
 (0)