{} where allowed
This commit is contained in:
@@ -24,7 +24,4 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.cache.definitions;
|
package net.runelite.cache.definitions;
|
||||||
|
|
||||||
public interface WorldMapTypeBase
|
public interface WorldMapTypeBase {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -25,7 +25,4 @@
|
|||||||
|
|
||||||
package net.runelite.asm.attributes.code.instruction.types;
|
package net.runelite.asm.attributes.code.instruction.types;
|
||||||
|
|
||||||
public interface ArrayStoreInstruction extends MappableInstruction
|
public interface ArrayStoreInstruction extends MappableInstruction {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -25,7 +25,4 @@
|
|||||||
|
|
||||||
package net.runelite.asm.attributes.code.instruction.types;
|
package net.runelite.asm.attributes.code.instruction.types;
|
||||||
|
|
||||||
public interface ComparisonInstruction
|
public interface ComparisonInstruction {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -25,7 +25,4 @@
|
|||||||
|
|
||||||
package net.runelite.asm.attributes.code.instruction.types;
|
package net.runelite.asm.attributes.code.instruction.types;
|
||||||
|
|
||||||
public interface ConversionInstruction
|
public interface ConversionInstruction {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -25,6 +25,4 @@
|
|||||||
|
|
||||||
package net.runelite.asm.attributes.code.instruction.types;
|
package net.runelite.asm.attributes.code.instruction.types;
|
||||||
|
|
||||||
public interface GetFieldInstruction extends FieldInstruction
|
public interface GetFieldInstruction extends FieldInstruction {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -25,7 +25,4 @@
|
|||||||
|
|
||||||
package net.runelite.asm.attributes.code.instruction.types;
|
package net.runelite.asm.attributes.code.instruction.types;
|
||||||
|
|
||||||
public interface ReturnInstruction
|
public interface ReturnInstruction {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -25,6 +25,4 @@
|
|||||||
|
|
||||||
package net.runelite.asm.attributes.code.instruction.types;
|
package net.runelite.asm.attributes.code.instruction.types;
|
||||||
|
|
||||||
public interface SetFieldInstruction extends FieldInstruction, MappableInstruction
|
public interface SetFieldInstruction extends FieldInstruction, MappableInstruction {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -24,7 +24,4 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.deob.deobfuscators.unusedclass;
|
package net.runelite.deob.deobfuscators.unusedclass;
|
||||||
|
|
||||||
public class EmptyClass
|
public class EmptyClass {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -24,7 +24,4 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.deob.deobfuscators.unusedclass;
|
package net.runelite.deob.deobfuscators.unusedclass;
|
||||||
|
|
||||||
public interface EmptyInterface
|
public interface EmptyInterface {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -70,9 +70,7 @@ public class HookImporter
|
|||||||
Assert.assertNotNull(is);
|
Assert.assertNotNull(is);
|
||||||
|
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
java.lang.reflect.Type type = new TypeToken<Map<String, ClassHook>>()
|
java.lang.reflect.Type type = new TypeToken<Map<String, ClassHook>>() {}.getType();
|
||||||
{
|
|
||||||
}.getType();
|
|
||||||
hooks = gson.fromJson(new InputStreamReader(is), type);
|
hooks = gson.fromJson(new InputStreamReader(is), type);
|
||||||
|
|
||||||
group = JarUtil.loadJar(IN);
|
group = JarUtil.loadJar(IN);
|
||||||
|
|||||||
@@ -81,9 +81,7 @@ public class HookImporter
|
|||||||
|
|
||||||
InputStream is = getClass().getResourceAsStream("hooks.json");
|
InputStream is = getClass().getResourceAsStream("hooks.json");
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
java.lang.reflect.Type type = new TypeToken<List<HookClass>>()
|
java.lang.reflect.Type type = new TypeToken<List<HookClass>>() {}.getType();
|
||||||
{
|
|
||||||
}.getType();
|
|
||||||
hooks = gson.fromJson(new InputStreamReader(is), type);
|
hooks = gson.fromJson(new InputStreamReader(is), type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,9 +115,7 @@ public class AnimationClient
|
|||||||
{
|
{
|
||||||
InputStream in = response.body().byteStream();
|
InputStream in = response.body().byteStream();
|
||||||
// CHECKSTYLE:OFF
|
// CHECKSTYLE:OFF
|
||||||
return RuneLiteAPI.GSON.fromJson(new InputStreamReader(in), new TypeToken<List<AnimationKey>>()
|
return RuneLiteAPI.GSON.fromJson(new InputStreamReader(in), new TypeToken<List<AnimationKey>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
// CHECKSTYLE:ON
|
// CHECKSTYLE:ON
|
||||||
}
|
}
|
||||||
catch (JsonParseException ex)
|
catch (JsonParseException ex)
|
||||||
|
|||||||
@@ -102,9 +102,7 @@ public class LootTrackerClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
InputStream in = response.body().byteStream();
|
InputStream in = response.body().byteStream();
|
||||||
return RuneLiteAPI.GSON.fromJson(new InputStreamReader(in), new TypeToken<List<LootRecord>>()
|
return RuneLiteAPI.GSON.fromJson(new InputStreamReader(in), new TypeToken<List<LootRecord>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
}
|
}
|
||||||
catch (JsonParseException ex)
|
catch (JsonParseException ex)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,6 +27,4 @@ package net.runelite.http.api.ws.messages.party;
|
|||||||
import net.runelite.api.events.Event;
|
import net.runelite.api.events.Event;
|
||||||
import net.runelite.http.api.ws.WebsocketMessage;
|
import net.runelite.http.api.ws.WebsocketMessage;
|
||||||
|
|
||||||
public class Part extends WebsocketMessage implements Event
|
public class Part extends WebsocketMessage implements Event {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -30,6 +30,4 @@ import net.runelite.api.events.Event;
|
|||||||
|
|
||||||
@Value
|
@Value
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class UserSync extends PartyMemberMessage implements Event
|
public class UserSync extends PartyMemberMessage implements Event {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -101,9 +101,7 @@ public class XteaClient
|
|||||||
{
|
{
|
||||||
InputStream in = response.body().byteStream();
|
InputStream in = response.body().byteStream();
|
||||||
// CHECKSTYLE:OFF
|
// CHECKSTYLE:OFF
|
||||||
return RuneLiteAPI.GSON.fromJson(new InputStreamReader(in), new TypeToken<List<XteaKey>>()
|
return RuneLiteAPI.GSON.fromJson(new InputStreamReader(in), new TypeToken<List<XteaKey>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
// CHECKSTYLE:ON
|
// CHECKSTYLE:ON
|
||||||
}
|
}
|
||||||
catch (JsonParseException ex)
|
catch (JsonParseException ex)
|
||||||
|
|||||||
@@ -110,9 +110,7 @@ public class TwitterService
|
|||||||
}
|
}
|
||||||
|
|
||||||
InputStream in = response.body().byteStream();
|
InputStream in = response.body().byteStream();
|
||||||
Type listType = new TypeToken<List<TwitterStatusesResponseItem>>()
|
Type listType = new TypeToken<List<TwitterStatusesResponseItem>>() {}.getType();
|
||||||
{
|
|
||||||
}.getType();
|
|
||||||
List<TwitterStatusesResponseItem> statusesResponse = RuneLiteAPI.GSON
|
List<TwitterStatusesResponseItem> statusesResponse = RuneLiteAPI.GSON
|
||||||
.fromJson(new InputStreamReader(in), listType);
|
.fromJson(new InputStreamReader(in), listType);
|
||||||
|
|
||||||
|
|||||||
@@ -58,9 +58,7 @@ public class OsbuddyClient
|
|||||||
throw new IOException("Error retrieving summary from OSBuddy: " + responseOk.message());
|
throw new IOException("Error retrieving summary from OSBuddy: " + responseOk.message());
|
||||||
}
|
}
|
||||||
|
|
||||||
Type type = new TypeToken<Map<Integer, OsbuddySummaryItem>>()
|
Type type = new TypeToken<Map<Integer, OsbuddySummaryItem>>() {}.getType();
|
||||||
{
|
|
||||||
}.getType();
|
|
||||||
|
|
||||||
return RuneLiteAPI.GSON.fromJson(responseOk.body().string(), type);
|
return RuneLiteAPI.GSON.fromJson(responseOk.body().string(), type);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,4 @@ import org.springframework.http.HttpStatus;
|
|||||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||||
|
|
||||||
@ResponseStatus(code = HttpStatus.NOT_FOUND, reason = "Not found")
|
@ResponseStatus(code = HttpStatus.NOT_FOUND, reason = "Not found")
|
||||||
public class NotFoundException extends RuntimeException
|
public class NotFoundException extends RuntimeException {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -24,7 +24,4 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.protocol.api.handshake;
|
package net.runelite.protocol.api.handshake;
|
||||||
|
|
||||||
public abstract class HandshakePacket
|
public abstract class HandshakePacket {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -29,7 +29,4 @@ import lombok.EqualsAndHashCode;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class LoginHandshakePacket extends HandshakePacket
|
public class LoginHandshakePacket extends HandshakePacket {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -27,6 +27,4 @@ package net.runelite.api;
|
|||||||
/**
|
/**
|
||||||
* Represents the friend and ignore list manager.
|
* Represents the friend and ignore list manager.
|
||||||
*/
|
*/
|
||||||
public interface FriendManager
|
public interface FriendManager {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -27,6 +27,4 @@ package net.runelite.api;
|
|||||||
/**
|
/**
|
||||||
* Detects when the window is focused or unfocused.
|
* Detects when the window is focused or unfocused.
|
||||||
*/
|
*/
|
||||||
public interface KeyFocusListener
|
public interface KeyFocusListener {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -27,6 +27,4 @@ package net.runelite.api;
|
|||||||
/**
|
/**
|
||||||
* Represents a chat entity that has a name.
|
* Represents a chat entity that has a name.
|
||||||
*/
|
*/
|
||||||
public interface Nameable extends Comparable
|
public interface Nameable extends Comparable {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -33,6 +33,4 @@ import java.lang.annotation.RetentionPolicy;
|
|||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
public @interface VisibleForDevtools
|
public @interface VisibleForDevtools {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.api.events;
|
package net.runelite.api.events;
|
||||||
|
|
||||||
public interface Event
|
public interface Event {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -37,6 +37,4 @@ import java.lang.annotation.Target;
|
|||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.METHOD)
|
@Target(ElementType.METHOD)
|
||||||
@Documented
|
@Documented
|
||||||
public @interface Alpha
|
public @interface Alpha {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.client.config;
|
package net.runelite.client.config;
|
||||||
|
|
||||||
public class Button
|
public class Button {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -24,6 +24,4 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.client.config;
|
package net.runelite.client.config;
|
||||||
|
|
||||||
public interface Config
|
public interface Config {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.client.config;
|
package net.runelite.client.config;
|
||||||
|
|
||||||
public class Title
|
public class Title {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -35,7 +35,4 @@ import net.runelite.api.events.Event;
|
|||||||
* it has nothing to do with whether an account is being logged out.
|
* it has nothing to do with whether an account is being logged out.
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SessionClose implements Event
|
public class SessionClose implements Event {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -35,7 +35,4 @@ import net.runelite.api.events.Event;
|
|||||||
* it has nothing to do with whether an account is being logged in.
|
* it has nothing to do with whether an account is being logged in.
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SessionOpen implements Event
|
public class SessionOpen implements Event {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -24,6 +24,4 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.client.input;
|
package net.runelite.client.input;
|
||||||
|
|
||||||
public interface KeyListener extends java.awt.event.KeyListener
|
public interface KeyListener extends java.awt.event.KeyListener {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -24,6 +24,4 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.client.plugins.achievementdiary;
|
package net.runelite.client.plugins.achievementdiary;
|
||||||
|
|
||||||
public interface Requirement
|
public interface Requirement {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -108,9 +108,7 @@ public class GrandExchangePlugin extends Plugin
|
|||||||
private static final OSBGrandExchangeClient CLIENT = new OSBGrandExchangeClient();
|
private static final OSBGrandExchangeClient CLIENT = new OSBGrandExchangeClient();
|
||||||
private static final String OSB_GE_TEXT = "<br>OSBuddy Actively traded price: ";
|
private static final String OSB_GE_TEXT = "<br>OSBuddy Actively traded price: ";
|
||||||
private static final String BUY_LIMIT_GE_TEXT = "<br>Buy limit: ";
|
private static final String BUY_LIMIT_GE_TEXT = "<br>Buy limit: ";
|
||||||
private static final TypeToken<Map<Integer, Integer>> BUY_LIMIT_TOKEN = new TypeToken<Map<Integer, Integer>>()
|
private static final TypeToken<Map<Integer, Integer>> BUY_LIMIT_TOKEN = new TypeToken<Map<Integer, Integer>>() {};
|
||||||
{
|
|
||||||
};
|
|
||||||
@Getter(AccessLevel.PACKAGE)
|
@Getter(AccessLevel.PACKAGE)
|
||||||
private NavigationButton button;
|
private NavigationButton button;
|
||||||
|
|
||||||
|
|||||||
@@ -140,9 +140,7 @@ public class GroundMarkerPlugin extends Plugin
|
|||||||
return GSON.fromJson(json, new GroundMarkerListTypeToken().getType());
|
return GSON.fromJson(json, new GroundMarkerListTypeToken().getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class GroundMarkerListTypeToken extends TypeToken<List<GroundMarkerPoint>>
|
private static class GroundMarkerListTypeToken extends TypeToken<List<GroundMarkerPoint>> {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
private GroundMarkerConfig.amount amount;
|
private GroundMarkerConfig.amount amount;
|
||||||
@Getter(AccessLevel.PACKAGE)
|
@Getter(AccessLevel.PACKAGE)
|
||||||
|
|||||||
@@ -301,10 +301,7 @@ public class InventorySetupPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
// TODO add last resort?, serialize exception just make empty map
|
// TODO add last resort?, serialize exception just make empty map
|
||||||
final Gson gson = new Gson();
|
final Gson gson = new Gson();
|
||||||
Type type = new TypeToken<HashMap<String, InventorySetup>>()
|
Type type = new TypeToken<HashMap<String, InventorySetup>>() {}.getType();
|
||||||
{
|
|
||||||
|
|
||||||
}.getType();
|
|
||||||
inventorySetups.clear();
|
inventorySetups.clear();
|
||||||
inventorySetups.putAll(gson.fromJson(json, type));
|
inventorySetups.putAll(gson.fromJson(json, type));
|
||||||
}
|
}
|
||||||
@@ -371,7 +368,7 @@ public class InventorySetupPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final String setupName = panel.getSelectedInventorySetup();
|
final String setupName = panel.getSelectedInventorySetup();
|
||||||
if (!setupName.isEmpty())
|
if (!setupName.isEmpty())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1451,9 +1451,7 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
Collection<LootRecord> lootRecords = new ArrayList<>(RuneLiteAPI.GSON.fromJson(new FileReader(LOOT_RECORDS_FILE),
|
Collection<LootRecord> lootRecords = new ArrayList<>(RuneLiteAPI.GSON.fromJson(new FileReader(LOOT_RECORDS_FILE),
|
||||||
new TypeToken<ArrayList<LootRecord>>()
|
new TypeToken<ArrayList<LootRecord>>() {}.getType()));
|
||||||
{
|
|
||||||
}.getType()));
|
|
||||||
|
|
||||||
DSLContext dslContext = databaseManager.getDsl();
|
DSLContext dslContext = databaseManager.getDsl();
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,4 @@ package net.runelite.client.plugins.loottracker.localstorage.events;
|
|||||||
|
|
||||||
import net.runelite.api.events.Event;
|
import net.runelite.api.events.Event;
|
||||||
|
|
||||||
public class LTNameChange implements Event
|
public class LTNameChange implements Event {}
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -17,9 +17,7 @@ public class GrimyHerbLookup
|
|||||||
{
|
{
|
||||||
final InputStream herbFile = GrimyHerbLookup.class.getResourceAsStream("/herbs.json");
|
final InputStream herbFile = GrimyHerbLookup.class.getResourceAsStream("/herbs.json");
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
mapping = gson.fromJson(new InputStreamReader(herbFile), new TypeToken<Map<String, HerbInfo>>()
|
mapping = gson.fromJson(new InputStreamReader(herbFile), new TypeToken<Map<String, HerbInfo>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCleanLevel(int itemId)
|
public int getCleanLevel(int itemId)
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.client.plugins.menuentryswapper.util;
|
package net.runelite.client.plugins.menuentryswapper.util;
|
||||||
|
|
||||||
public class HerbNotFoundException extends RuntimeException
|
public class HerbNotFoundException extends RuntimeException {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -62,9 +62,7 @@ public class NotesManager
|
|||||||
if (!Strings.isNullOrEmpty(configJson))
|
if (!Strings.isNullOrEmpty(configJson))
|
||||||
{
|
{
|
||||||
final Gson gson = new Gson();
|
final Gson gson = new Gson();
|
||||||
notes = gson.fromJson(configJson, new TypeToken<ArrayList<String>>()
|
notes = gson.fromJson(configJson, new TypeToken<ArrayList<String>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (notes == null)
|
if (notes == null)
|
||||||
|
|||||||
@@ -503,9 +503,7 @@ public class ObjectIndicatorsPlugin extends Plugin implements KeyListener
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<ObjectPoint> points = GSON.fromJson(json, new TypeToken<Set<ObjectPoint>>()
|
Set<ObjectPoint> points = GSON.fromJson(json, new TypeToken<Set<ObjectPoint>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
// Prior to multiloc support the plugin would mark objects named "null", which breaks
|
// Prior to multiloc support the plugin would mark objects named "null", which breaks
|
||||||
// in most cases due to the specific object being identified being ambiguous, so remove
|
// in most cases due to the specific object being identified being ambiguous, so remove
|
||||||
// them
|
// them
|
||||||
|
|||||||
@@ -258,9 +258,7 @@ public class ScreenMarkerPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Gson gson = new Gson();
|
final Gson gson = new Gson();
|
||||||
final List<ScreenMarker> screenMarkerData = gson.fromJson(json, new TypeToken<ArrayList<ScreenMarker>>()
|
final List<ScreenMarker> screenMarkerData = gson.fromJson(json, new TypeToken<ArrayList<ScreenMarker>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
|
|
||||||
return screenMarkerData.stream().map(ScreenMarkerOverlay::new);
|
return screenMarkerData.stream().map(ScreenMarkerOverlay::new);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,9 +44,7 @@ class SlayerXpDropLookup
|
|||||||
try (final InputStream xpFile = getClass().getResourceAsStream("/slayer_xp.json"))
|
try (final InputStream xpFile = getClass().getResourceAsStream("/slayer_xp.json"))
|
||||||
{
|
{
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
xpMap = gson.fromJson(new InputStreamReader(xpFile), new TypeToken<Map<String, List<Double>>>()
|
xpMap = gson.fromJson(new InputStreamReader(xpFile), new TypeToken<Map<String, List<Double>>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -486,9 +486,7 @@ public class SpellbookPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CHECKSTYLE:OFF
|
// CHECKSTYLE:OFF
|
||||||
final Collection<Spell> gson = GSON.fromJson(cfg, new TypeToken<List<Spell>>()
|
final Collection<Spell> gson = GSON.fromJson(cfg, new TypeToken<List<Spell>>() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
.getType());
|
.getType());
|
||||||
// CHECKSTYLE:ON
|
// CHECKSTYLE:ON
|
||||||
|
|
||||||
|
|||||||
@@ -153,9 +153,7 @@ public class ClockManager
|
|||||||
if (!Strings.isNullOrEmpty(timersJson))
|
if (!Strings.isNullOrEmpty(timersJson))
|
||||||
{
|
{
|
||||||
final Gson gson = new Gson();
|
final Gson gson = new Gson();
|
||||||
final List<Timer> timers = gson.fromJson(timersJson, new TypeToken<ArrayList<Timer>>()
|
final List<Timer> timers = gson.fromJson(timersJson, new TypeToken<ArrayList<Timer>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
|
|
||||||
this.timers.clear();
|
this.timers.clear();
|
||||||
this.timers.addAll(timers);
|
this.timers.addAll(timers);
|
||||||
@@ -170,9 +168,7 @@ public class ClockManager
|
|||||||
if (!Strings.isNullOrEmpty(stopwatchesJson))
|
if (!Strings.isNullOrEmpty(stopwatchesJson))
|
||||||
{
|
{
|
||||||
final Gson gson = new Gson();
|
final Gson gson = new Gson();
|
||||||
final List<Stopwatch> stopwatches = gson.fromJson(stopwatchesJson, new TypeToken<ArrayList<Stopwatch>>()
|
final List<Stopwatch> stopwatches = gson.fromJson(stopwatchesJson, new TypeToken<ArrayList<Stopwatch>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
|
|
||||||
this.stopwatches.clear();
|
this.stopwatches.clear();
|
||||||
this.stopwatches.addAll(stopwatches);
|
this.stopwatches.addAll(stopwatches);
|
||||||
|
|||||||
@@ -136,9 +136,7 @@ public class WikiSearchChatboxTextInput extends ChatboxTextInput
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
JsonArray jar = new JsonParser().parse(body).getAsJsonArray();
|
JsonArray jar = new JsonParser().parse(body).getAsJsonArray();
|
||||||
List<String> apredictions = gson.fromJson(jar.get(1), new TypeToken<List<String>>()
|
List<String> apredictions = gson.fromJson(jar.get(1), new TypeToken<List<String>>() {}.getType());
|
||||||
{
|
|
||||||
}.getType());
|
|
||||||
|
|
||||||
if (apredictions.size() > MAX_NUM_PREDICTIONS)
|
if (apredictions.size() > MAX_NUM_PREDICTIONS)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ public class HiscorePanelTest
|
|||||||
@Test
|
@Test
|
||||||
public void testConstructor()
|
public void testConstructor()
|
||||||
{
|
{
|
||||||
new HiscorePanel(new HiscorePlugin()
|
new HiscorePanel(new HiscorePlugin() {});
|
||||||
{
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,4 @@ import java.lang.annotation.Target;
|
|||||||
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR})
|
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR})
|
||||||
public @interface Inject
|
public @interface Inject {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -34,18 +34,15 @@ import java.lang.annotation.Target;
|
|||||||
* Inject a method to create and construct an object.
|
* Inject a method to create and construct an object.
|
||||||
* The object type is inferred from the return value
|
* The object type is inferred from the return value
|
||||||
* of the method.
|
* of the method.
|
||||||
*
|
*
|
||||||
* {@code
|
* {@code
|
||||||
* {@literal @}Construct
|
* {@literal @}Construct
|
||||||
* RSIndexedImage createIndexedImage();
|
* RSIndexedImage createIndexedImage();
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @author Adam
|
* @author Adam
|
||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.METHOD)
|
@Target(ElementType.METHOD)
|
||||||
@Documented
|
@Documented
|
||||||
public @interface Construct
|
public @interface Construct {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.rs.api;
|
package net.runelite.rs.api;
|
||||||
|
|
||||||
public interface RSCanvas
|
public interface RSCanvas {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,6 +2,4 @@ package net.runelite.rs.api;
|
|||||||
|
|
||||||
import net.runelite.api.ClanMember;
|
import net.runelite.api.ClanMember;
|
||||||
|
|
||||||
public interface RSClanMate extends RSBuddy, ClanMember
|
public interface RSClanMate extends RSBuddy, ClanMember {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -24,6 +24,4 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.rs.api;
|
package net.runelite.rs.api;
|
||||||
|
|
||||||
public interface RSDecimator
|
public interface RSDecimator {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.rs.api;
|
package net.runelite.rs.api;
|
||||||
|
|
||||||
public interface RSFont extends RSAbstractFont
|
public interface RSFont extends RSAbstractFont {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,6 +2,4 @@ package net.runelite.rs.api;
|
|||||||
|
|
||||||
import net.runelite.api.Friend;
|
import net.runelite.api.Friend;
|
||||||
|
|
||||||
public interface RSFriend extends Friend, RSBuddy
|
public interface RSFriend extends Friend, RSBuddy {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.rs.api;
|
package net.runelite.rs.api;
|
||||||
|
|
||||||
public interface RSFriendsList extends RSUserList<RSFriend>
|
public interface RSFriendsList extends RSUserList<RSFriend> {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.rs.api;
|
package net.runelite.rs.api;
|
||||||
|
|
||||||
public interface RSIgnoreList extends RSUserList<RSIgnored>
|
public interface RSIgnoreList extends RSUserList<RSIgnored> {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,6 +2,4 @@ package net.runelite.rs.api;
|
|||||||
|
|
||||||
import net.runelite.api.Ignore;
|
import net.runelite.api.Ignore;
|
||||||
|
|
||||||
public interface RSIgnored extends Ignore, RSUser
|
public interface RSIgnored extends Ignore, RSUser {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -4,6 +4,4 @@ import net.runelite.api.KeyFocusListener;
|
|||||||
import java.awt.event.FocusListener;
|
import java.awt.event.FocusListener;
|
||||||
import java.awt.event.KeyListener;
|
import java.awt.event.KeyListener;
|
||||||
|
|
||||||
public interface RSKeyHandler extends KeyListener, FocusListener, KeyFocusListener
|
public interface RSKeyHandler extends KeyListener, FocusListener, KeyFocusListener {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.rs.api;
|
package net.runelite.rs.api;
|
||||||
|
|
||||||
public interface RSLoginType
|
public interface RSLoginType {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -4,6 +4,4 @@ import java.awt.event.FocusListener;
|
|||||||
import java.awt.event.MouseListener;
|
import java.awt.event.MouseListener;
|
||||||
import java.awt.event.MouseMotionListener;
|
import java.awt.event.MouseMotionListener;
|
||||||
|
|
||||||
public interface RSMouseHandler extends MouseListener, MouseMotionListener, FocusListener
|
public interface RSMouseHandler extends MouseListener, MouseMotionListener, FocusListener {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,6 +2,4 @@ package net.runelite.rs.api;
|
|||||||
|
|
||||||
import java.awt.event.MouseWheelListener;
|
import java.awt.event.MouseWheelListener;
|
||||||
|
|
||||||
public interface RSMouseWheelHandler extends MouseWheelListener
|
public interface RSMouseWheelHandler extends MouseWheelListener {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package net.runelite.rs.api;
|
package net.runelite.rs.api;
|
||||||
|
|
||||||
public interface RSPacketBuffer
|
public interface RSPacketBuffer {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -24,6 +24,4 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.rs.api;
|
package net.runelite.rs.api;
|
||||||
|
|
||||||
public interface RSPcmStream
|
public interface RSPcmStream {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import net.runelite.mapping.ObfuscatedName;
|
import net.runelite.mapping.ObfuscatedName;
|
||||||
|
|
||||||
@ObfuscatedName("fu")
|
@ObfuscatedName("fu")
|
||||||
public interface class161 {
|
public interface class161 {}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import net.runelite.mapping.ObfuscatedName;
|
import net.runelite.mapping.ObfuscatedName;
|
||||||
|
|
||||||
@ObfuscatedName("fo")
|
@ObfuscatedName("fo")
|
||||||
public interface class181 {
|
public interface class181 {}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
package net.runelite.rs;
|
package net.runelite.rs;
|
||||||
|
|
||||||
public class Opcodes {
|
public class Opcodes {}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user