Skip to content

Commit bbb55c7

Browse files
turing85christophd
authored andcommitted
Refactoring: replace ".map(testClass -> (TestSource) testClass)" with ".map(TestSource.class::cast)"
1 parent 8624b33 commit bbb55c7

File tree

1 file changed

+1
-1
lines changed
  • citrus-remote-maven-plugin/src/main/java/org/citrusframework/remote/plugin

1 file changed

+1
-1
lines changed

citrus-remote-maven-plugin/src/main/java/org/citrusframework/remote/plugin/RunTestMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private void runClasses(List<String> classes) throws MojoExecutionException {
131131

132132
List<TestSource> testSources = classes.stream()
133133
.map(TestClass::fromString)
134-
.map(testClass -> (TestSource) testClass)
134+
.map(TestSource.class::cast)
135135
.toList();
136136
runConfiguration.setTestSources(testSources);
137137

0 commit comments

Comments
 (0)