Skip to content

Commit b4914ef

Browse files
TomyLoboJoo200
authored andcommitted
Fix checkstyle problems
1 parent 3e9e1c8 commit b4914ef

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/util/PaperInterop.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@
2626
import org.bukkit.entity.Entity;
2727
import org.bukkit.inventory.Inventory;
2828
import org.bukkit.inventory.InventoryHolder;
29-
import org.jetbrains.annotations.NotNull;
30-
import org.jetbrains.annotations.Nullable;
3129

3230
import javax.annotation.Nonnull;
31+
import javax.annotation.Nullable;
3332
import java.util.concurrent.CompletableFuture;
3433

3534
/**
3635
* This class is mainly here to replace PaperLib, as it no longer fully functions on MC 26.1+.
3736
*/
3837
public class PaperInterop {
38+
private PaperInterop() {
39+
}
3940

4041
public static @Nullable InventoryHolder getHolder(@Nonnull Inventory inventory, boolean useSnapshot) {
4142
if (PaperLib.isPaper()) {
@@ -45,15 +46,15 @@ public class PaperInterop {
4546
return inventory.getHolder();
4647
}
4748

48-
public static @NotNull BlockState getBlockState(@Nonnull Block block, boolean useSnapshot) {
49+
public static BlockState getBlockState(@Nonnull Block block, boolean useSnapshot) {
4950
if (PaperLib.isPaper()) {
5051
return block.getState(useSnapshot);
5152
}
5253

5354
return block.getState();
5455
}
5556

56-
public static @NotNull CompletableFuture<Boolean> teleportAsync(@Nonnull Entity entity, @Nonnull Location location) {
57+
public static CompletableFuture<Boolean> teleportAsync(@Nonnull Entity entity, @Nonnull Location location) {
5758
if (PaperLib.isPaper()) {
5859
return entity.teleportAsync(location);
5960
}

0 commit comments

Comments
 (0)