From c0a0d36e5d660fe850f98c8265b27d2e9fc951a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Tue, 14 Jul 2020 19:40:47 +0200 Subject: [PATCH] Remove remaining jetbrains imports --- .../bukkit/generator/DelegatePlotGenerator.java | 7 ++++--- Core/src/main/java/com/plotsquared/core/command/Auto.java | 1 - build.gradle | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/DelegatePlotGenerator.java b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/DelegatePlotGenerator.java index 6452941a2..0f5ca12a6 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/DelegatePlotGenerator.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/DelegatePlotGenerator.java @@ -39,7 +39,6 @@ import org.bukkit.block.Biome; import org.bukkit.generator.BlockPopulator; import org.bukkit.generator.ChunkGenerator; import javax.annotation.Nonnull; -import org.jetbrains.annotations.Range; import java.util.Random; @@ -73,8 +72,10 @@ final class DelegatePlotGenerator extends IndependentPlotGenerator { try { ChunkGenerator.BiomeGrid grid = new ChunkGenerator.BiomeGrid() { @Override - public void setBiome(@Range(from = 0, to = 15) int x, - @Range(from = 0, to = 15) int z, @Nonnull Biome biome) { + public void setBiome( + final int x, + final int z, + @Nonnull final Biome biome) { result.setBiome(x, z, BukkitAdapter.adapt(biome)); } diff --git a/Core/src/main/java/com/plotsquared/core/command/Auto.java b/Core/src/main/java/com/plotsquared/core/command/Auto.java index 81cd9b082..c75b805c8 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Auto.java +++ b/Core/src/main/java/com/plotsquared/core/command/Auto.java @@ -52,7 +52,6 @@ import com.plotsquared.core.util.task.AutoClaimFinishTask; import com.plotsquared.core.util.task.RunnableVal; import com.plotsquared.core.util.task.TaskManager; import net.kyori.adventure.text.minimessage.Template; -import org.jetbrains.annotations.Nullable; import javax.annotation.Nonnull; import javax.annotation.Nullable; diff --git a/build.gradle b/build.gradle index eacbc0fc2..1cf27d25c 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,6 @@ buildscript { configurations.all { resolutionStrategy { force("org.ow2.asm:asm:8.0.1") - force("org.jetbrains:annotations:19.0.0") } } } @@ -94,7 +93,6 @@ subprojects { subproject -> implementation("com.google.guava:guava:21.0") { because("Minecraft uses Guava 21 as of 1.13") } - compileOnly("org.jetbrains:annotations:19.0.0") compileClasspath("org.projectlombok:lombok:1.18.12") testCompileOnly("org.projectlombok:lombok:1.18.12") annotationProcessor("org.projectlombok:lombok:1.18.8") @@ -108,7 +106,6 @@ subprojects { subproject -> resolutionStrategy { force("junit:junit:4.12") force("com.google.guava:guava:21.0") - force("org.jetbrains:annotations:19.0.0") force("com.google.code.findbugs:jsr305:3.0.2") } }