mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-20 07:19:16 +00:00
fix: bad null annotations on legacy conversion
This commit is contained in:
@@ -53,9 +53,9 @@ public class BukkitLegacyConverter extends LegacyConverter {
|
|||||||
super(plugin);
|
super(plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
|
||||||
@Override
|
@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 {
|
@NotNull OffsetDateTime timestamp) throws DataAdapter.AdaptionException {
|
||||||
final JSONObject object = new JSONObject(plugin.getDataAdapter().bytesToString(data));
|
final JSONObject object = new JSONObject(plugin.getDataAdapter().bytesToString(data));
|
||||||
final int version = object.getInt("format_version");
|
final int version = object.getInt("format_version");
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public abstract class LegacyConverter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@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;
|
@NotNull OffsetDateTime timestamp) throws DataAdapter.AdaptionException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user