Skip to content

Commit

Permalink
fix: fixup some compiler warns
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Nov 1, 2024
1 parent b347a8d commit 38cc654
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ allprojects {
apply plugin: 'java'

compileJava.options.encoding = 'UTF-8'
compileJava.options.compilerArgs += ['-Xlint:unchecked', '-Xlint:deprecation']
compileJava.options.release.set Integer.parseInt(rootProject.ext.javaVersion)
javadoc.options.encoding = 'UTF-8'
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@

@Getter
@NoArgsConstructor
@SuppressWarnings("unchecked")
public class BukkitHuskSync extends JavaPlugin implements HuskSync, BukkitTask.Supplier,
BukkitEventDispatcher, BukkitMapPersister {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public PersistentData(@NotNull HuskSync plugin) {

@Override
public BukkitData.PersistentData deserialize(@NotNull String serialized) throws DeserializationException {
return BukkitData.PersistentData.from(new NBTContainer(serialized));
return BukkitData.PersistentData.from((NBTContainer) NBT.parseNBT(serialized));
}

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@

@Getter
@NoArgsConstructor
@SuppressWarnings("unchecked")
public class FabricHuskSync implements DedicatedServerModInitializer, HuskSync, FabricTask.Supplier,
FabricEventDispatcher {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import java.util.UUID;

@SuppressWarnings("unused")
@SuppressWarnings({"unchecked", "unused"})
public class PaperHuskSync extends BukkitHuskSync {

@NotNull
Expand Down

0 comments on commit 38cc654

Please sign in to comment.