Skip to content

Commit aeb863d

Browse files
Use var for local variables initialized with constructor in tests
Use this link to re-run the recipe: https://app.moderne.io/builder/9uwIjLvVE?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
1 parent 7702e27 commit aeb863d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/openrewrite/jenkins/AddPluginsBomTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void shouldFixOutdatedPluginsBom() {
362362

363363
@Test
364364
void shouldFixOutdatedPluginsBomPropertiesBelowManagedDependencies() {
365-
ModernizePluginTest.Versions versionsBefore = new ModernizePluginTest.Versions(
365+
var versionsBefore = new ModernizePluginTest.Versions(
366366
"4.86",
367367
"2.440.3",
368368
"bom-2.346.x",

src/test/java/org/openrewrite/jenkins/ModernizePluginTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void defaults(RecipeSpec spec) {
6565
@DocumentExample
6666
@Test
6767
void shouldDoTheWorks() {
68-
Versions versionsBefore = new Versions(
68+
var versionsBefore = new Versions(
6969
"4.75",
7070
"2.387.3",
7171
"bom-2.387.x",

0 commit comments

Comments
 (0)