diff --git a/src/main/java/org/openrewrite/kotlin/AddImport.java b/src/main/java/org/openrewrite/kotlin/AddImport.java index 5aee87a82..14feecedf 100644 --- a/src/main/java/org/openrewrite/kotlin/AddImport.java +++ b/src/main/java/org/openrewrite/kotlin/AddImport.java @@ -16,9 +16,9 @@ package org.openrewrite.kotlin; import lombok.EqualsAndHashCode; +import org.jspecify.annotations.Nullable; import org.openrewrite.internal.ListUtils; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaIsoVisitor; import org.openrewrite.java.marker.JavaSourceSet; import org.openrewrite.java.search.FindMethods; diff --git a/src/main/java/org/openrewrite/kotlin/Assertions.java b/src/main/java/org/openrewrite/kotlin/Assertions.java index 8605b1984..9143729dc 100644 --- a/src/main/java/org/openrewrite/kotlin/Assertions.java +++ b/src/main/java/org/openrewrite/kotlin/Assertions.java @@ -17,9 +17,9 @@ import org.intellij.lang.annotations.Language; +import org.jspecify.annotations.Nullable; import org.openrewrite.*; import org.openrewrite.internal.ThrowingConsumer; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.search.FindMissingTypes; import org.openrewrite.java.tree.*; import org.openrewrite.kotlin.marker.Extension; diff --git a/src/main/java/org/openrewrite/kotlin/FindKotlinSources.java b/src/main/java/org/openrewrite/kotlin/FindKotlinSources.java index 822cd692e..f5764218e 100644 --- a/src/main/java/org/openrewrite/kotlin/FindKotlinSources.java +++ b/src/main/java/org/openrewrite/kotlin/FindKotlinSources.java @@ -17,8 +17,8 @@ import lombok.EqualsAndHashCode; import lombok.Value; +import org.jspecify.annotations.Nullable; import org.openrewrite.*; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.kotlin.table.KotlinSourceFile; import org.openrewrite.kotlin.tree.K; import org.openrewrite.marker.SearchResult; diff --git a/src/main/java/org/openrewrite/kotlin/KotlinParser.java b/src/main/java/org/openrewrite/kotlin/KotlinParser.java index 3ec523875..d1dd87826 100644 --- a/src/main/java/org/openrewrite/kotlin/KotlinParser.java +++ b/src/main/java/org/openrewrite/kotlin/KotlinParser.java @@ -63,8 +63,8 @@ import org.jetbrains.kotlin.psi.KtFile; import org.jetbrains.kotlin.resolve.jvm.platform.JvmPlatformAnalyzerServices; import org.jetbrains.kotlin.utils.PathUtil; +import org.jspecify.annotations.Nullable; import org.openrewrite.*; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaParser; import org.openrewrite.java.internal.JavaTypeCache; import org.openrewrite.java.marker.JavaSourceSet; diff --git a/src/main/java/org/openrewrite/kotlin/KotlinVisitor.java b/src/main/java/org/openrewrite/kotlin/KotlinVisitor.java index 5aea5f98a..8d3871901 100644 --- a/src/main/java/org/openrewrite/kotlin/KotlinVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/KotlinVisitor.java @@ -15,10 +15,10 @@ */ package org.openrewrite.kotlin; +import org.jspecify.annotations.Nullable; import org.openrewrite.Cursor; import org.openrewrite.SourceFile; import org.openrewrite.internal.ListUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaVisitor; import org.openrewrite.java.tree.*; import org.openrewrite.kotlin.marker.*; diff --git a/src/main/java/org/openrewrite/kotlin/cleanup/EqualsMethodUsage.java b/src/main/java/org/openrewrite/kotlin/cleanup/EqualsMethodUsage.java index cb710a3a4..9267dc5bd 100644 --- a/src/main/java/org/openrewrite/kotlin/cleanup/EqualsMethodUsage.java +++ b/src/main/java/org/openrewrite/kotlin/cleanup/EqualsMethodUsage.java @@ -17,8 +17,8 @@ import lombok.EqualsAndHashCode; import lombok.Value; +import org.jspecify.annotations.Nullable; import org.openrewrite.*; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.tree.Expression; import org.openrewrite.java.tree.J; import org.openrewrite.java.tree.Space; diff --git a/src/main/java/org/openrewrite/kotlin/cleanup/RemoveTrailingSemicolon.java b/src/main/java/org/openrewrite/kotlin/cleanup/RemoveTrailingSemicolon.java index 6a80ff473..9af7efffb 100644 --- a/src/main/java/org/openrewrite/kotlin/cleanup/RemoveTrailingSemicolon.java +++ b/src/main/java/org/openrewrite/kotlin/cleanup/RemoveTrailingSemicolon.java @@ -17,11 +17,11 @@ import lombok.EqualsAndHashCode; import lombok.Value; +import org.jspecify.annotations.Nullable; import org.openrewrite.ExecutionContext; import org.openrewrite.PrintOutputCapture; import org.openrewrite.Recipe; import org.openrewrite.TreeVisitor; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.tree.J; import org.openrewrite.java.tree.Space; import org.openrewrite.kotlin.KotlinIsoVisitor; diff --git a/src/main/java/org/openrewrite/kotlin/cleanup/package-info.java b/src/main/java/org/openrewrite/kotlin/cleanup/package-info.java index 490389621..dbacfd740 100644 --- a/src/main/java/org/openrewrite/kotlin/cleanup/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/cleanup/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.cleanup; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/format/AutoFormatVisitor.java b/src/main/java/org/openrewrite/kotlin/format/AutoFormatVisitor.java index 946a42df5..fd7807956 100644 --- a/src/main/java/org/openrewrite/kotlin/format/AutoFormatVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/AutoFormatVisitor.java @@ -16,10 +16,10 @@ package org.openrewrite.kotlin.format; +import org.jspecify.annotations.Nullable; import org.openrewrite.Cursor; import org.openrewrite.SourceFile; import org.openrewrite.Tree; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.tree.J; import org.openrewrite.java.tree.JavaSourceFile; import org.openrewrite.kotlin.KotlinIsoVisitor; diff --git a/src/main/java/org/openrewrite/kotlin/format/BlankLinesVisitor.java b/src/main/java/org/openrewrite/kotlin/format/BlankLinesVisitor.java index 24f0aecf3..a8adfd12a 100644 --- a/src/main/java/org/openrewrite/kotlin/format/BlankLinesVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/BlankLinesVisitor.java @@ -16,9 +16,9 @@ package org.openrewrite.kotlin.format; +import org.jspecify.annotations.Nullable; import org.openrewrite.Tree; import org.openrewrite.internal.ListUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.tree.*; import org.openrewrite.kotlin.KotlinIsoVisitor; import org.openrewrite.kotlin.marker.OmitBraces; diff --git a/src/main/java/org/openrewrite/kotlin/format/MinimumViableSpacingVisitor.java b/src/main/java/org/openrewrite/kotlin/format/MinimumViableSpacingVisitor.java index 7831aa484..12cc5b7b1 100644 --- a/src/main/java/org/openrewrite/kotlin/format/MinimumViableSpacingVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/MinimumViableSpacingVisitor.java @@ -16,10 +16,10 @@ package org.openrewrite.kotlin.format; import com.fasterxml.jackson.annotation.JsonCreator; +import org.jspecify.annotations.Nullable; import org.openrewrite.Tree; import org.openrewrite.internal.ListUtils; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.marker.ImplicitReturn; import org.openrewrite.java.tree.*; import org.openrewrite.kotlin.KotlinIsoVisitor; diff --git a/src/main/java/org/openrewrite/kotlin/format/NormalizeFormatVisitor.java b/src/main/java/org/openrewrite/kotlin/format/NormalizeFormatVisitor.java index 35d171122..f20016911 100644 --- a/src/main/java/org/openrewrite/kotlin/format/NormalizeFormatVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/NormalizeFormatVisitor.java @@ -16,10 +16,10 @@ package org.openrewrite.kotlin.format; import com.fasterxml.jackson.annotation.JsonCreator; +import org.jspecify.annotations.Nullable; import org.openrewrite.Tree; import org.openrewrite.internal.ListUtils; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaVisitor; import org.openrewrite.java.JavadocVisitor; import org.openrewrite.java.tree.*; diff --git a/src/main/java/org/openrewrite/kotlin/format/NormalizeLineBreaksVisitor.java b/src/main/java/org/openrewrite/kotlin/format/NormalizeLineBreaksVisitor.java index 80ef22443..03e9363aa 100644 --- a/src/main/java/org/openrewrite/kotlin/format/NormalizeLineBreaksVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/NormalizeLineBreaksVisitor.java @@ -15,9 +15,9 @@ */ package org.openrewrite.kotlin.format; +import org.jspecify.annotations.Nullable; import org.openrewrite.Tree; import org.openrewrite.internal.ListUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaVisitor; import org.openrewrite.java.JavadocVisitor; import org.openrewrite.java.tree.*; diff --git a/src/main/java/org/openrewrite/kotlin/format/NormalizeTabsOrSpacesVisitor.java b/src/main/java/org/openrewrite/kotlin/format/NormalizeTabsOrSpacesVisitor.java index 7860db364..545591ad6 100644 --- a/src/main/java/org/openrewrite/kotlin/format/NormalizeTabsOrSpacesVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/NormalizeTabsOrSpacesVisitor.java @@ -16,11 +16,11 @@ package org.openrewrite.kotlin.format; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; import org.openrewrite.Tree; import org.openrewrite.internal.ListUtils; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.NonNull; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaVisitor; import org.openrewrite.java.JavadocVisitor; import org.openrewrite.java.tree.*; diff --git a/src/main/java/org/openrewrite/kotlin/format/RemoveTrailingWhitespaceVisitor.java b/src/main/java/org/openrewrite/kotlin/format/RemoveTrailingWhitespaceVisitor.java index 615068e27..56c506129 100644 --- a/src/main/java/org/openrewrite/kotlin/format/RemoveTrailingWhitespaceVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/RemoveTrailingWhitespaceVisitor.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; +import org.jspecify.annotations.Nullable; import org.openrewrite.Tree; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.tree.J; import org.openrewrite.java.tree.JavaSourceFile; import org.openrewrite.java.tree.Space; diff --git a/src/main/java/org/openrewrite/kotlin/format/SpacesFromCompilationUnitStyle.java b/src/main/java/org/openrewrite/kotlin/format/SpacesFromCompilationUnitStyle.java index e9f8c2383..48be5b636 100644 --- a/src/main/java/org/openrewrite/kotlin/format/SpacesFromCompilationUnitStyle.java +++ b/src/main/java/org/openrewrite/kotlin/format/SpacesFromCompilationUnitStyle.java @@ -15,9 +15,9 @@ */ package org.openrewrite.kotlin.format; +import org.jspecify.annotations.Nullable; import org.openrewrite.ExecutionContext; import org.openrewrite.Tree; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.tree.J; import org.openrewrite.kotlin.KotlinIsoVisitor; import org.openrewrite.kotlin.style.IntelliJ; diff --git a/src/main/java/org/openrewrite/kotlin/format/SpacesVisitor.java b/src/main/java/org/openrewrite/kotlin/format/SpacesVisitor.java index 5babb3660..46ea4d727 100644 --- a/src/main/java/org/openrewrite/kotlin/format/SpacesVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/SpacesVisitor.java @@ -15,11 +15,11 @@ */ package org.openrewrite.kotlin.format; +import org.jspecify.annotations.Nullable; import org.openrewrite.PrintOutputCapture; import org.openrewrite.Tree; import org.openrewrite.internal.ListUtils; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.marker.OmitParentheses; import org.openrewrite.java.marker.TrailingComma; import org.openrewrite.java.tree.*; diff --git a/src/main/java/org/openrewrite/kotlin/format/TabsAndIndentsVisitor.java b/src/main/java/org/openrewrite/kotlin/format/TabsAndIndentsVisitor.java index f26416411..83714839e 100644 --- a/src/main/java/org/openrewrite/kotlin/format/TabsAndIndentsVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/TabsAndIndentsVisitor.java @@ -15,11 +15,11 @@ */ package org.openrewrite.kotlin.format; +import org.jspecify.annotations.Nullable; import org.openrewrite.Cursor; import org.openrewrite.Tree; import org.openrewrite.internal.ListUtils; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.marker.ImplicitReturn; import org.openrewrite.java.tree.*; import org.openrewrite.kotlin.KotlinIsoVisitor; diff --git a/src/main/java/org/openrewrite/kotlin/format/WrappingAndBracesVisitor.java b/src/main/java/org/openrewrite/kotlin/format/WrappingAndBracesVisitor.java index c0e57e906..7195d2962 100644 --- a/src/main/java/org/openrewrite/kotlin/format/WrappingAndBracesVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/format/WrappingAndBracesVisitor.java @@ -16,10 +16,10 @@ package org.openrewrite.kotlin.format; +import org.jspecify.annotations.Nullable; import org.openrewrite.Cursor; import org.openrewrite.Tree; import org.openrewrite.internal.ListUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.tree.*; import org.openrewrite.kotlin.KotlinIsoVisitor; import org.openrewrite.kotlin.marker.OmitBraces; diff --git a/src/main/java/org/openrewrite/kotlin/format/package-info.java b/src/main/java/org/openrewrite/kotlin/format/package-info.java index 9bff646e4..164c9bfb8 100644 --- a/src/main/java/org/openrewrite/kotlin/format/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/format/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.format; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/internal/KotlinPrinter.java b/src/main/java/org/openrewrite/kotlin/internal/KotlinPrinter.java index 96e32599b..b56d5c204 100755 --- a/src/main/java/org/openrewrite/kotlin/internal/KotlinPrinter.java +++ b/src/main/java/org/openrewrite/kotlin/internal/KotlinPrinter.java @@ -15,10 +15,10 @@ */ package org.openrewrite.kotlin.internal; +import org.jspecify.annotations.Nullable; import org.openrewrite.Cursor; import org.openrewrite.PrintOutputCapture; import org.openrewrite.Tree; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaPrinter; import org.openrewrite.java.marker.ImplicitReturn; import org.openrewrite.java.marker.OmitParentheses; diff --git a/src/main/java/org/openrewrite/kotlin/internal/KotlinTreeParserVisitor.java b/src/main/java/org/openrewrite/kotlin/internal/KotlinTreeParserVisitor.java index 8e7f374fe..9c965d8d6 100644 --- a/src/main/java/org/openrewrite/kotlin/internal/KotlinTreeParserVisitor.java +++ b/src/main/java/org/openrewrite/kotlin/internal/KotlinTreeParserVisitor.java @@ -38,14 +38,14 @@ import org.jetbrains.kotlin.parsing.ParseUtilsKt; import org.jetbrains.kotlin.psi.*; import org.jetbrains.kotlin.psi.psiUtil.PsiUtilsKt; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; import org.openrewrite.ExecutionContext; import org.openrewrite.FileAttributes; import org.openrewrite.ParseExceptionResult; import org.openrewrite.Tree; import org.openrewrite.internal.EncodingDetectingInputStream; import org.openrewrite.internal.ListUtils; -import org.openrewrite.internal.lang.NonNull; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.marker.ImplicitReturn; import org.openrewrite.java.marker.OmitParentheses; import org.openrewrite.java.marker.Quoted; diff --git a/src/main/java/org/openrewrite/kotlin/internal/PsiTreePrinter.java b/src/main/java/org/openrewrite/kotlin/internal/PsiTreePrinter.java index d37e0b1b8..49846088d 100644 --- a/src/main/java/org/openrewrite/kotlin/internal/PsiTreePrinter.java +++ b/src/main/java/org/openrewrite/kotlin/internal/PsiTreePrinter.java @@ -40,8 +40,8 @@ import org.jetbrains.kotlin.name.ClassId; import org.jetbrains.kotlin.name.FqName; import org.jetbrains.kotlin.psi.psiUtil.PsiUtilsKt; +import org.jspecify.annotations.Nullable; import org.openrewrite.*; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.internal.JavaTypeCache; import org.openrewrite.java.tree.*; import org.openrewrite.kotlin.KotlinIrTypeMapping; diff --git a/src/main/java/org/openrewrite/kotlin/internal/package-info.java b/src/main/java/org/openrewrite/kotlin/internal/package-info.java index de64c72ae..baaaa84ed 100644 --- a/src/main/java/org/openrewrite/kotlin/internal/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/internal/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.internal; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/internal/template/package-info.java b/src/main/java/org/openrewrite/kotlin/internal/template/package-info.java index aad0d0987..d27983de1 100644 --- a/src/main/java/org/openrewrite/kotlin/internal/template/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/internal/template/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.internal.template; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/marker/IsNullSafe.java b/src/main/java/org/openrewrite/kotlin/marker/IsNullSafe.java index 19873a8db..d53288923 100644 --- a/src/main/java/org/openrewrite/kotlin/marker/IsNullSafe.java +++ b/src/main/java/org/openrewrite/kotlin/marker/IsNullSafe.java @@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Value; import lombok.With; -import org.openrewrite.internal.lang.Nullable; +import org.jspecify.annotations.Nullable; import org.openrewrite.java.tree.Space; import org.openrewrite.marker.Marker; diff --git a/src/main/java/org/openrewrite/kotlin/marker/KObject.java b/src/main/java/org/openrewrite/kotlin/marker/KObject.java index 1e71a8b09..581914d91 100644 --- a/src/main/java/org/openrewrite/kotlin/marker/KObject.java +++ b/src/main/java/org/openrewrite/kotlin/marker/KObject.java @@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Value; import lombok.With; -import org.openrewrite.internal.lang.Nullable; +import org.jspecify.annotations.Nullable; import org.openrewrite.java.tree.Space; import org.openrewrite.marker.Marker; diff --git a/src/main/java/org/openrewrite/kotlin/marker/package-info.java b/src/main/java/org/openrewrite/kotlin/marker/package-info.java index 4dd782244..d80f9727c 100644 --- a/src/main/java/org/openrewrite/kotlin/marker/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/marker/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.marker; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/package-info.java b/src/main/java/org/openrewrite/kotlin/package-info.java index 338fe11cb..1902d78fd 100644 --- a/src/main/java/org/openrewrite/kotlin/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/search/package-info.java b/src/main/java/org/openrewrite/kotlin/search/package-info.java index d1c0102b9..d9694e198 100644 --- a/src/main/java/org/openrewrite/kotlin/search/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/search/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.search; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/service/KotlinAutoFormatService.java b/src/main/java/org/openrewrite/kotlin/service/KotlinAutoFormatService.java index 5e2f7accc..2d2d7dc82 100644 --- a/src/main/java/org/openrewrite/kotlin/service/KotlinAutoFormatService.java +++ b/src/main/java/org/openrewrite/kotlin/service/KotlinAutoFormatService.java @@ -15,8 +15,8 @@ */ package org.openrewrite.kotlin.service; +import org.jspecify.annotations.Nullable; import org.openrewrite.Tree; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaVisitor; import org.openrewrite.java.service.AutoFormatService; import org.openrewrite.kotlin.format.AutoFormatVisitor; diff --git a/src/main/java/org/openrewrite/kotlin/service/KotlinImportService.java b/src/main/java/org/openrewrite/kotlin/service/KotlinImportService.java index b4e146943..728fc6a9a 100644 --- a/src/main/java/org/openrewrite/kotlin/service/KotlinImportService.java +++ b/src/main/java/org/openrewrite/kotlin/service/KotlinImportService.java @@ -15,7 +15,7 @@ */ package org.openrewrite.kotlin.service; -import org.openrewrite.internal.lang.Nullable; +import org.jspecify.annotations.Nullable; import org.openrewrite.java.JavaVisitor; import org.openrewrite.java.service.ImportService; import org.openrewrite.kotlin.AddImport; diff --git a/src/main/java/org/openrewrite/kotlin/service/package-info.java b/src/main/java/org/openrewrite/kotlin/service/package-info.java index 5a02e4b7a..aed168883 100644 --- a/src/main/java/org/openrewrite/kotlin/service/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/service/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.service; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/style/Autodetect.java b/src/main/java/org/openrewrite/kotlin/style/Autodetect.java index c87473805..54d3b9742 100644 --- a/src/main/java/org/openrewrite/kotlin/style/Autodetect.java +++ b/src/main/java/org/openrewrite/kotlin/style/Autodetect.java @@ -19,11 +19,11 @@ import lombok.Data; import lombok.EqualsAndHashCode; import lombok.Value; +import org.jspecify.annotations.Nullable; import org.openrewrite.SourceFile; import org.openrewrite.Tree; import org.openrewrite.internal.ListUtils; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.marker.TrailingComma; import org.openrewrite.java.tree.*; import org.openrewrite.kotlin.KotlinIsoVisitor; diff --git a/src/main/java/org/openrewrite/kotlin/style/ImportLayoutStyle.java b/src/main/java/org/openrewrite/kotlin/style/ImportLayoutStyle.java index 62eb87f04..654949d17 100644 --- a/src/main/java/org/openrewrite/kotlin/style/ImportLayoutStyle.java +++ b/src/main/java/org/openrewrite/kotlin/style/ImportLayoutStyle.java @@ -28,9 +28,9 @@ import com.fasterxml.jackson.databind.jsontype.TypeSerializer; import lombok.EqualsAndHashCode; import lombok.Getter; +import org.jspecify.annotations.Nullable; import org.openrewrite.internal.ListUtils; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.tree.*; import org.openrewrite.kotlin.KotlinStyle; import org.openrewrite.kotlin.internal.KotlinPrinter; diff --git a/src/main/java/org/openrewrite/kotlin/style/package-info.java b/src/main/java/org/openrewrite/kotlin/style/package-info.java index 692ca5027..01b7f8e70 100644 --- a/src/main/java/org/openrewrite/kotlin/style/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/style/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.style; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/table/package-info.java b/src/main/java/org/openrewrite/kotlin/table/package-info.java index 92d0a4d9f..134630469 100644 --- a/src/main/java/org/openrewrite/kotlin/table/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/table/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.table; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/main/java/org/openrewrite/kotlin/tree/K.java b/src/main/java/org/openrewrite/kotlin/tree/K.java index cb98c05dc..21ddf4397 100644 --- a/src/main/java/org/openrewrite/kotlin/tree/K.java +++ b/src/main/java/org/openrewrite/kotlin/tree/K.java @@ -20,9 +20,9 @@ import lombok.*; import lombok.experimental.FieldDefaults; import lombok.experimental.NonFinal; +import org.jspecify.annotations.Nullable; import org.openrewrite.*; import org.openrewrite.internal.ListUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaPrinter; import org.openrewrite.java.JavaTypeVisitor; import org.openrewrite.java.internal.TypesInUse; diff --git a/src/main/java/org/openrewrite/kotlin/tree/package-info.java b/src/main/java/org/openrewrite/kotlin/tree/package-info.java index 0534c44b5..43b2eaf38 100644 --- a/src/main/java/org/openrewrite/kotlin/tree/package-info.java +++ b/src/main/java/org/openrewrite/kotlin/tree/package-info.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@NonNullApi +@NullMarked @NonNullFields package org.openrewrite.kotlin.tree; -import org.openrewrite.internal.lang.NonNullApi; +import org.jspecify.annotations.NullMarked; import org.openrewrite.internal.lang.NonNullFields; diff --git a/src/test/java/org/openrewrite/kotlin/KotlinIrTypeMappingTest.java b/src/test/java/org/openrewrite/kotlin/KotlinIrTypeMappingTest.java index fe37ef27c..79291c67c 100644 --- a/src/test/java/org/openrewrite/kotlin/KotlinIrTypeMappingTest.java +++ b/src/test/java/org/openrewrite/kotlin/KotlinIrTypeMappingTest.java @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.com.intellij.openapi.Disposable; import org.jetbrains.kotlin.com.intellij.openapi.util.Disposer; import org.jetbrains.kotlin.ir.declarations.*; +import org.jspecify.annotations.Nullable; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Nested; @@ -25,7 +26,6 @@ import org.openrewrite.InMemoryExecutionContext; import org.openrewrite.Parser; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.internal.JavaTypeCache; import org.openrewrite.kotlin.internal.CompiledSource; import org.openrewrite.test.RewriteTest; diff --git a/src/test/java/org/openrewrite/kotlin/KotlinTypeIrSignatureBuilderTest.java b/src/test/java/org/openrewrite/kotlin/KotlinTypeIrSignatureBuilderTest.java index ff834f1d3..b5a4c18ed 100644 --- a/src/test/java/org/openrewrite/kotlin/KotlinTypeIrSignatureBuilderTest.java +++ b/src/test/java/org/openrewrite/kotlin/KotlinTypeIrSignatureBuilderTest.java @@ -18,13 +18,13 @@ import org.jetbrains.kotlin.com.intellij.openapi.Disposable; import org.jetbrains.kotlin.com.intellij.openapi.util.Disposer; import org.jetbrains.kotlin.ir.declarations.*; +import org.jspecify.annotations.Nullable; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.openrewrite.InMemoryExecutionContext; import org.openrewrite.Parser; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.kotlin.internal.CompiledSource; import org.openrewrite.tree.ParsingExecutionContextView; diff --git a/src/test/java/org/openrewrite/kotlin/KotlinTypeSignatureBuilderTest.java b/src/test/java/org/openrewrite/kotlin/KotlinTypeSignatureBuilderTest.java index 4dc1ad7dc..cbf5a2c4f 100644 --- a/src/test/java/org/openrewrite/kotlin/KotlinTypeSignatureBuilderTest.java +++ b/src/test/java/org/openrewrite/kotlin/KotlinTypeSignatureBuilderTest.java @@ -18,13 +18,13 @@ import org.jetbrains.kotlin.com.intellij.openapi.Disposable; import org.jetbrains.kotlin.com.intellij.openapi.util.Disposer; import org.jetbrains.kotlin.fir.declarations.*; +import org.jspecify.annotations.Nullable; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.openrewrite.InMemoryExecutionContext; import org.openrewrite.Parser; import org.openrewrite.internal.StringUtils; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.kotlin.internal.CompiledSource; import org.openrewrite.tree.ParsingExecutionContextView;