From e93c4784eec4506071b358bfc473506d9299da0d Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 10 Apr 2018 13:56:48 +0200 Subject: [PATCH] Build/silence warnings --- build.number | 4 ++-- .../voxelmodpack/hdskins/skins/TexturesPayloadBuilder.java | 3 ++- .../com/voxelmodpack/hdskins/skins/ValhallaSkinServer.java | 3 ++- src/main/java/com/minelittlepony/MineLittlePony.java | 6 ++++-- .../java/com/minelittlepony/MissingRendererException.java | 3 ++- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/build.number b/build.number index db875869..93eb7e02 100644 --- a/build.number +++ b/build.number @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Tue Jan 02 00:10:52 EST 2018 -build.number=495 +#Tue Apr 10 14:03:42 CAT 2018 +build.number=497 diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/skins/TexturesPayloadBuilder.java b/src/hdskins/java/com/voxelmodpack/hdskins/skins/TexturesPayloadBuilder.java index d65d27f2..eb3d1362 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/skins/TexturesPayloadBuilder.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/skins/TexturesPayloadBuilder.java @@ -15,11 +15,12 @@ import java.util.UUID; * required because it has no useful constructor. This uses reflection * via Gson to create a new instance and populate the fields. */ +@SuppressWarnings("unused") public class TexturesPayloadBuilder { private static Gson gson = new GsonBuilder().registerTypeAdapter(UUID.class, new UUIDTypeAdapter()).create(); - private long timestamp; + private long timestamp; private UUID profileId; private String profileName; private boolean isPublic; diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/skins/ValhallaSkinServer.java b/src/hdskins/java/com/voxelmodpack/hdskins/skins/ValhallaSkinServer.java index 50046925..c23d50ce 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/skins/ValhallaSkinServer.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/skins/ValhallaSkinServer.java @@ -14,7 +14,8 @@ import javax.annotation.Nullable; public class ValhallaSkinServer implements SkinServer { - private final String baseURL; + @SuppressWarnings("unused") + private final String baseURL; public ValhallaSkinServer(String baseURL) { this.baseURL = baseURL; diff --git a/src/main/java/com/minelittlepony/MineLittlePony.java b/src/main/java/com/minelittlepony/MineLittlePony.java index e9b16174..00ddc4aa 100644 --- a/src/main/java/com/minelittlepony/MineLittlePony.java +++ b/src/main/java/com/minelittlepony/MineLittlePony.java @@ -52,8 +52,10 @@ public class MineLittlePony { public static final String MOD_NAME = "Mine Little Pony"; public static final String MOD_VERSION = "@VERSION@"; - private static final String SKIN_SERVER_URL = "minelpskins.voxelmodpack.com"; - private static final String GATEWAY_URL = "minelpskinmanager.voxelmodpack.com"; + @SuppressWarnings("unused") + private static final String SKIN_SERVER_URL = "minelpskins.voxelmodpack.com"; + @SuppressWarnings("unused") + private static final String GATEWAY_URL = "minelpskinmanager.voxelmodpack.com"; private static final KeyBinding SETTINGS_GUI = new KeyBinding("Settings", Keyboard.KEY_F9, "Mine Little Pony"); private static MineLittlePony instance; diff --git a/src/main/java/com/minelittlepony/MissingRendererException.java b/src/main/java/com/minelittlepony/MissingRendererException.java index 34117e18..c2fdba27 100644 --- a/src/main/java/com/minelittlepony/MissingRendererException.java +++ b/src/main/java/com/minelittlepony/MissingRendererException.java @@ -1,8 +1,9 @@ package com.minelittlepony; public class MissingRendererException extends RuntimeException { + private static final long serialVersionUID = -6059469512902628663L; - public MissingRendererException(Class cl) { + public MissingRendererException(Class cl) { super("Could not find a renderer for " + cl.getName() + ". This is a bug."); } }