[*] Migrate to jspecify annotations
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
@NullMarked
|
||||
package de.siphalor.tweed5.dataapi.api;
|
||||
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
Reference in New Issue
Block a user