fix: bad null annotations on legacy conversion

feat/data-edit-commands
William 11 months ago
parent 3fe6245ddf
commit ef3dc7e602
No known key found for this signature in database

@ -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");

@ -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;
}

Loading…
Cancel
Save