Skip to content

Commit 19589a8

Browse files
timtebeekTeamModerne
authored andcommitted
refactor: Static imports for Collections and Collectors
Use this link to re-run the recipe: https://app.moderne.io/builder/m9HsHwu2Z?organizationId=ODQ2MGExMTUtNDg0My00N2EwLTgzMGMtNGE1NGExMTBmZDkw Co-authored-by: Moderne <team@moderne.io>
1 parent f7c5e1a commit 19589a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ import java.time.format.DateTimeFormatter
3333
import java.util.*
3434
import java.util.jar.Manifest
3535
import java.util.regex.Pattern
36-
import java.util.stream.Collectors
36+
import java.util.stream.Collectors.joining
37+
3738
import kotlin.io.path.toPath
3839
import kotlin.system.exitProcess
3940

@@ -1718,7 +1719,7 @@ import TabItem from '@theme/TabItem';
17181719
} else {
17191720
"[" + contributor.name + "](mailto:" + contributor.email + ")"
17201721
}
1721-
}.collect(Collectors.joining(", "))
1722+
}.collect(joining(", "))
17221723
)
17231724
}
17241725
}

0 commit comments

Comments
 (0)