Skip to content

Commit

Permalink
Suppressed deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Nov 17, 2020
1 parent 19f8d93 commit c0f6bf2
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion NMS/API/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
}

jar{
archiveName = findProperty("Name") + " v" + findProperty("version") + ".jar"
archiveFileName = findProperty("Name") + " v" + findProperty("version") + ".jar"
}

description = 'EcoEnchants API'
2 changes: 1 addition & 1 deletion NMS/v1_15_R1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
}

jar{
archiveName = project.name + " v" + findProperty("version") + ".jar"
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
}

description = 'v1_15_R1'
2 changes: 1 addition & 1 deletion NMS/v1_16_R1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
}

jar{
archiveName = project.name + " v" + findProperty("version") + ".jar"
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
}

description = 'v1_16_R1'
2 changes: 1 addition & 1 deletion NMS/v1_16_R2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
}

jar{
archiveName = project.name + " v" + findProperty("version") + ".jar"
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
}

description = 'v1_16_R2'
2 changes: 1 addition & 1 deletion NMS/v1_16_R3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
}

jar{
archiveName = project.name + " v" + findProperty("version") + ".jar"
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
}

description = 'v1_16_R3'
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.Optional;
import java.util.Set;

@SuppressWarnings("deprecation")
public class EnchantmentCache {
private static final Set<CacheEntry> CACHE = new HashSet<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;

@SuppressWarnings("deprecation")
public final class Graceful extends EcoEnchant {
public Graceful() {
super(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
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<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.util.Set;
import java.util.UUID;

@SuppressWarnings("deprecation")
public class WatcherTriggers implements Listener {

@EventHandler(ignoreCancelled = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* @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.

Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -95,6 +95,7 @@ allprojects {
}

tasks.withType(JavaCompile) {
options.deprecation = true
options.encoding = 'UTF-8'
}
compileJava.options.encoding = 'UTF-8'
Expand Down

0 comments on commit c0f6bf2

Please sign in to comment.