diff --git a/Plan/src/main/java/com/djrapitops/plan/system/database/databases/sql/patches/IPAnonPatch.java b/Plan/src/main/java/com/djrapitops/plan/system/database/databases/sql/patches/IPAnonPatch.java index 8a56a38b6..353c2153a 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/database/databases/sql/patches/IPAnonPatch.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/database/databases/sql/patches/IPAnonPatch.java @@ -11,7 +11,6 @@ import com.djrapitops.plan.system.database.databases.sql.tables.move.Version18Tr import com.djrapitops.plan.system.settings.Settings; import com.djrapitops.plugin.api.utility.log.Log; -import java.io.UnsupportedEncodingException; import java.net.InetAddress; import java.net.UnknownHostException; import java.security.NoSuchAlgorithmException; @@ -84,7 +83,7 @@ public class IPAnonPatch extends Patch { statement.setString(2, updatedInfo.getIpHash()); statement.setString(3, geoInfo.getIp()); statement.addBatch(); - } catch (UnknownHostException | UnsupportedEncodingException | NoSuchAlgorithmException e) { + } catch (UnknownHostException | NoSuchAlgorithmException e) { if (Settings.DEV_MODE.isTrue()) { Log.toLog(this.getClass(), e); } diff --git a/Plan/src/test/java/com/djrapitops/plan/data/container/GeoInfoTest.java b/Plan/src/test/java/com/djrapitops/plan/data/container/GeoInfoTest.java index d1cda25dd..6e382eacf 100644 --- a/Plan/src/test/java/com/djrapitops/plan/data/container/GeoInfoTest.java +++ b/Plan/src/test/java/com/djrapitops/plan/data/container/GeoInfoTest.java @@ -2,7 +2,6 @@ package com.djrapitops.plan.data.container; import org.junit.Test; -import java.io.UnsupportedEncodingException; import java.net.InetAddress; import java.net.UnknownHostException; import java.security.NoSuchAlgorithmException; @@ -17,7 +16,7 @@ import static org.junit.Assert.assertEquals; public class GeoInfoTest { @Test - public void automaticallyHidesLast16Bits() throws UnsupportedEncodingException, NoSuchAlgorithmException, UnknownHostException { + public void automaticallyHidesLast16Bits() throws NoSuchAlgorithmException, UnknownHostException { InetAddress test = InetAddress.getByName("1.2.3.4"); String expected = "1.2.xx.xx"; String result = new GeoInfo(test, "Irrelevant", 3).getIp();