From 2fe3f5c661be6e54cb5e6ff88aa0c76a3301c66c Mon Sep 17 00:00:00 2001 From: Fabrizio La Rosa Date: Tue, 14 Jul 2020 19:39:09 +0200 Subject: [PATCH] Made final some vars --- .../songoda/skyblock/levelling/IslandLevelManager.java | 9 ++++----- .../com/songoda/skyblock/placeholder/Placeholder.java | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/songoda/skyblock/levelling/IslandLevelManager.java b/src/main/java/com/songoda/skyblock/levelling/IslandLevelManager.java index ba5b2d42..695621b8 100644 --- a/src/main/java/com/songoda/skyblock/levelling/IslandLevelManager.java +++ b/src/main/java/com/songoda/skyblock/levelling/IslandLevelManager.java @@ -30,11 +30,10 @@ import java.util.*; import java.util.Map.Entry; public final class IslandLevelManager { - - private final static int VERSION = NMSUtil.getVersionNumber(); - private Map inScan; - private Map worth; - private Map cachedPairs; + + private final Map inScan; + private final Map worth; + private final Map cachedPairs; private final SkyBlock plugin; public IslandLevelManager(SkyBlock plugin) { diff --git a/src/main/java/com/songoda/skyblock/placeholder/Placeholder.java b/src/main/java/com/songoda/skyblock/placeholder/Placeholder.java index 98cc0359..068d748f 100644 --- a/src/main/java/com/songoda/skyblock/placeholder/Placeholder.java +++ b/src/main/java/com/songoda/skyblock/placeholder/Placeholder.java @@ -2,8 +2,8 @@ package com.songoda.skyblock.placeholder; public class Placeholder { - private String placeholder; - private String result; + private final String placeholder; + private final String result; public Placeholder(String placeholder, String result) { this.placeholder = placeholder;