9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-19 14:59:21 +00:00

fix: bad null annotations on legacy conversion

This commit is contained in:
William
2024-04-10 14:38:07 +01:00
parent 3fe6245ddf
commit ef3dc7e602
2 changed files with 3 additions and 3 deletions

View File

@@ -53,9 +53,9 @@ public class BukkitLegacyConverter extends LegacyConverter {
super(plugin);
}
@NotNull
@Override
public DataSnapshot.Packed convert(byte[] data, @NotNull UUID id,
@NotNull
public DataSnapshot.Packed convert(byte @NotNull [] data, @NotNull UUID id,
@NotNull OffsetDateTime timestamp) throws DataAdapter.AdaptionException {
final JSONObject object = new JSONObject(plugin.getDataAdapter().bytesToString(data));
final int version = object.getInt("format_version");

View File

@@ -36,7 +36,7 @@ public abstract class LegacyConverter {
}
@NotNull
public abstract DataSnapshot.Packed convert(@NotNull byte[] data, @NotNull UUID id,
public abstract DataSnapshot.Packed convert(byte @NotNull [] data, @NotNull UUID id,
@NotNull OffsetDateTime timestamp) throws DataAdapter.AdaptionException;
}