Suppressed deprecation warnings

This commit is contained in:
BuildTools 2020-11-17 15:33:44 +00:00
parent 19f8d9330c
commit c0f6bf2ee3
14 changed files with 17 additions and 8 deletions

View File

@ -7,7 +7,7 @@ dependencies {
}
jar{
archiveName = findProperty("Name") + " v" + findProperty("version") + ".jar"
archiveFileName = findProperty("Name") + " v" + findProperty("version") + ".jar"
}
description = 'EcoEnchants API'

View File

@ -8,7 +8,7 @@ dependencies {
}
jar{
archiveName = project.name + " v" + findProperty("version") + ".jar"
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
}
description = 'v1_15_R1'

View File

@ -8,7 +8,7 @@ dependencies {
}
jar{
archiveName = project.name + " v" + findProperty("version") + ".jar"
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
}
description = 'v1_16_R1'

View File

@ -8,7 +8,7 @@ dependencies {
}
jar{
archiveName = project.name + " v" + findProperty("version") + ".jar"
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
}
description = 'v1_16_R2'

View File

@ -8,7 +8,7 @@ dependencies {
}
jar{
archiveName = project.name + " v" + findProperty("version") + ".jar"
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
}
description = 'v1_16_R3'

View File

@ -15,6 +15,7 @@ import java.util.List;
import java.util.Optional;
import java.util.Set;
@SuppressWarnings("deprecation")
public class EnchantmentCache {
private static final Set<CacheEntry> CACHE = new HashSet<>();

View File

@ -7,6 +7,7 @@ import com.willfp.ecoenchants.display.EnchantDisplay;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.persistence.PersistentDataType;
@SuppressWarnings("deprecation")
public final class PacketSetSlot extends AbstractPacketAdapter {
public PacketSetSlot() {
super(PacketType.Play.Server.SET_SLOT);

View File

@ -6,7 +6,9 @@ import com.willfp.ecoenchants.display.AbstractPacketAdapter;
import com.willfp.ecoenchants.display.EnchantDisplay;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.persistence.PersistentDataType;
import org.kingdoms.utils.caffeine.checkerframework.checker.units.qual.Speed;
@SuppressWarnings("deprecation")
public final class PacketWindowItems extends AbstractPacketAdapter {
public PacketWindowItems() {
super(PacketType.Play.Server.WINDOW_ITEMS);

View File

@ -33,7 +33,7 @@ import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "deprecation"})
public abstract class EcoEnchant extends Enchantment implements Listener, Registerable, Watcher {
private String name;
private String description;

View File

@ -10,6 +10,7 @@ import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
@SuppressWarnings("deprecation")
public final class Graceful extends EcoEnchant {
public Graceful() {
super(

View File

@ -9,6 +9,7 @@ import org.bukkit.inventory.meta.EnchantmentStorageMeta;
import java.util.HashMap;
import java.util.Map;
@SuppressWarnings("deprecation")
public class GrindstoneMerge {
public static Map<Enchantment, Integer> doMerge(ItemStack top, ItemStack bottom) {
Map<Enchantment, Integer> bottomEnchants = new HashMap<>();

View File

@ -32,6 +32,7 @@ import java.text.DecimalFormat;
import java.util.Set;
import java.util.UUID;
@SuppressWarnings("deprecation")
public class WatcherTriggers implements Listener {
@EventHandler(ignoreCancelled = true)

View File

@ -25,6 +25,7 @@ import org.bukkit.inventory.ItemStack;
* @author Arnah
* @since Jul 30, 2015
*/
@SuppressWarnings("deprecation")
public class ArmorListener implements Listener {
//Event Priority is highest because other plugins might cancel the events before we check.

View File

@ -78,11 +78,11 @@ allprojects {
}
maven {
url 'http://repo.mikeprimm.com/'
url 'https://repo.mikeprimm.com/'
}
maven {
url 'http://maven.sk89q.com/repo/'
url 'https://maven.sk89q.com/repo/'
}
maven {
@ -95,6 +95,7 @@ allprojects {
}
tasks.withType(JavaCompile) {
options.deprecation = true
options.encoding = 'UTF-8'
}
compileJava.options.encoding = 'UTF-8'