Fixed compile issue that appeared because of commit cleanup

This commit is contained in:
Rsl1122 2018-08-05 22:12:28 +03:00
parent eb88f85467
commit 00bd119481
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}

View File

@ -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();