From cd36280b91d497086e220e965f2af3106e786ebf Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Wed, 27 Nov 2024 17:57:13 +0100 Subject: [PATCH] Fix expectation after correcting package --- .../java/migrate/jspecify/MigrateToJspecifyTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/openrewrite/java/migrate/jspecify/MigrateToJspecifyTest.java b/src/test/java/org/openrewrite/java/migrate/jspecify/MigrateToJspecifyTest.java index 4b094becd..be2a78d9c 100644 --- a/src/test/java/org/openrewrite/java/migrate/jspecify/MigrateToJspecifyTest.java +++ b/src/test/java/org/openrewrite/java/migrate/jspecify/MigrateToJspecifyTest.java @@ -84,7 +84,7 @@ class Bar { } """ ), - // package-info.java + //language=java java( """ @ParametersAreNonnullByDefault @@ -96,8 +96,9 @@ class Bar { @NullMarked package org.openrewrite.example; - import org.jspecify.annotation.NullMarked; - """ + import org.jspecify.annotations.NullMarked; + """, + spec -> spec.path("src/main/java/org/openrewrite/example/package-info.java") ) ), //language=xml