[*] Migrate to jspecify annotations

This commit is contained in:
2025-04-24 21:52:33 +02:00
parent cef5227bf1
commit c97f711c0b
100 changed files with 553 additions and 369 deletions

View File

@@ -3,7 +3,7 @@ package de.siphalor.tweed5.dataapi.api;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import org.jetbrains.annotations.Nullable;
import org.jspecify.annotations.Nullable;
@Getter
public class TweedDataReadException extends RuntimeException {
@@ -28,8 +28,7 @@ public class TweedDataReadException extends RuntimeException {
private String message;
private Throwable cause;
@Setter(AccessLevel.NONE)
@Nullable
private TweedDataReaderRecoverMode recoverMode;
private @Nullable TweedDataReaderRecoverMode recoverMode;
public TweedDataReadException build() {
return new TweedDataReadException(message, cause, recoverMode);

View File

@@ -1,7 +1,5 @@
package de.siphalor.tweed5.dataapi.api;
import org.jetbrains.annotations.NotNull;
public interface TweedDataVisitor {
void visitNull();
void visitBoolean(boolean value);
@@ -11,7 +9,7 @@ public interface TweedDataVisitor {
void visitLong(long value);
void visitFloat(float value);
void visitDouble(double value);
void visitString(@NotNull String value);
void visitString(String value);
default void visitEmptyList() {
visitListStart();

View File

@@ -0,0 +1,4 @@
@NullMarked
package de.siphalor.tweed5.dataapi.api;
import org.jspecify.annotations.NullMarked;