File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
cucumber-junit-platform-engine/src/main/java/io/cucumber/junit/platform/engine Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
## [ Unreleased]
13
13
### Fixed
14
+ - [ JUnit Platform Engine] Don't use Java 9+ APIs ([ #3025 ] ( https://github.com/cucumber/cucumber-jvm/pull/3025 ) M.P. Korstanje)
14
15
- [ JUnit Platform Engine] Implement toString on custom DiscoverySelectors
15
16
16
17
## [ 7.25.0] - 2025-07-10
Original file line number Diff line number Diff line change @@ -130,14 +130,13 @@ public Resolution resolve(FeatureWithLinesSelector selector) {
130
130
131
131
@ Override
132
132
public Resolution resolve (FileSelector selector , Context context ) {
133
- Set <DiscoverySelector > selectors = featureParser .parseResource (selector .getPath ())
134
- .stream ()
135
- .map (feature -> selector .getPosition ()
133
+ Set <FeatureElementSelector > selectors = featureParser .parseResource (selector .getPath ())
134
+ .flatMap (feature -> selector .getPosition ()
136
135
.map (position -> selectElementAt (feature , position ))
137
136
.orElseGet (() -> Optional .of (selectFeature (feature ))))
138
- .filter ( Optional :: isPresent )
139
- .map ( Optional :: get )
140
- . collect ( toSet ());
137
+ .map ( Collections :: singleton )
138
+ .orElseGet ( Collections :: emptySet );
139
+
141
140
return toResolution (selectors );
142
141
}
143
142
You can’t perform that action at this time.
0 commit comments