pestcontrol: Final fields

This commit is contained in:
sdburns1998
2019-07-07 17:37:08 +02:00
parent 826db719ca
commit 381b563926
2 changed files with 8 additions and 8 deletions

View File

@@ -41,9 +41,9 @@ import net.runelite.api.events.GameTick;
@Slf4j @Slf4j
public class Game public class Game
{ {
private Client client; private final Client client;
private PestControlPlugin plugin; private final PestControlPlugin plugin;
@Getter(AccessLevel.PACKAGE) @Getter(AccessLevel.PACKAGE)
private Portal bluePortal = new Portal(PortalColor.BLUE, WidgetPortal.BLUE); private Portal bluePortal = new Portal(PortalColor.BLUE, WidgetPortal.BLUE);
@@ -66,7 +66,7 @@ public class Game
private boolean portalLocationsSet = false; private boolean portalLocationsSet = false;
private Instant startTime = Instant.now(); private final Instant startTime = Instant.now();
public Game(Client client, PestControlPlugin plugin) public Game(Client client, PestControlPlugin plugin)
{ {

View File

@@ -53,11 +53,11 @@ public class PortalWeaknessOverlay extends Overlay
private final PestControlPlugin plugin; private final PestControlPlugin plugin;
private final Client client; private final Client client;
private BufferedImage magicImage; private final BufferedImage magicImage;
private BufferedImage rangedImage; private final BufferedImage rangedImage;
private BufferedImage stabImage; private final BufferedImage stabImage;
private BufferedImage slashImage; private final BufferedImage slashImage;
private BufferedImage crushImage; private final BufferedImage crushImage;
@Inject @Inject
PortalWeaknessOverlay( PortalWeaknessOverlay(