Skip to content

Commit ef3dc7e

Browse files
committed
fix: bad null annotations on legacy conversion
1 parent 3fe6245 commit ef3dc7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bukkit/src/main/java/net/william278/husksync/util/BukkitLegacyConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public BukkitLegacyConverter(@NotNull HuskSync plugin) {
5353
super(plugin);
5454
}
5555

56-
@NotNull
5756
@Override
58-
public DataSnapshot.Packed convert(byte[] data, @NotNull UUID id,
57+
@NotNull
58+
public DataSnapshot.Packed convert(byte @NotNull [] data, @NotNull UUID id,
5959
@NotNull OffsetDateTime timestamp) throws DataAdapter.AdaptionException {
6060
final JSONObject object = new JSONObject(plugin.getDataAdapter().bytesToString(data));
6161
final int version = object.getInt("format_version");

common/src/main/java/net/william278/husksync/util/LegacyConverter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected LegacyConverter(@NotNull HuskSync plugin) {
3636
}
3737

3838
@NotNull
39-
public abstract DataSnapshot.Packed convert(@NotNull byte[] data, @NotNull UUID id,
39+
public abstract DataSnapshot.Packed convert(byte @NotNull [] data, @NotNull UUID id,
4040
@NotNull OffsetDateTime timestamp) throws DataAdapter.AdaptionException;
4141

4242
}

0 commit comments

Comments
 (0)