Skip to content

Commit 54d8243

Browse files
dsgrievegithub-actions[bot]timtebeek
authored
Migrate SecurityReference SecurityRequirement (#821)
* Migrate SecurityReference SecurityRequirement * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix for disabled unit test Co-Authored-By: Steve Elliot <[email protected]> * address review comments * make sure recipe is applied to java files only * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply formatter & remove unused import * Remove unnecessary cast * address further review comments * Inline precondition * Inline only constant * Polish --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Tim te Beek <[email protected]>
1 parent 7a1ff29 commit 54d8243

File tree

4 files changed

+527
-49
lines changed

4 files changed

+527
-49
lines changed

src/main/java/org/openrewrite/java/spring/SeparateApplicationYamlByProfile.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ public Yaml.Documents visitDocuments(Yaml.Documents yaml, ExecutionContext ctx)
5353
if (PathUtils.matchesGlob(yaml.getSourcePath(), "**/application.yml")) {
5454
Set<Yaml.Documents> profiles = new HashSet<>(yaml.getDocuments().size());
5555

56-
//noinspection unchecked
5756
Yaml.Documents mainYaml = yaml.withDocuments(ListUtils.map(
58-
(List<Yaml.Document>) yaml.getDocuments(),
57+
yaml.getDocuments(),
5958
doc -> {
6059
String profileName = FindProperty.find(doc, "spring.config.activate.on-profile", true).stream()
6160
.findAny()

0 commit comments

Comments
 (0)