Add /* Ignored */ to ignored Throwables

This commit is contained in:
Fuzzlemann 2017-08-16 15:54:53 +02:00
parent bd96d09b74
commit e18f40b870
6 changed files with 12 additions and 2 deletions

View File

@ -97,6 +97,7 @@ public abstract class Table {
try {
execute(statement);
} catch (SQLException ignored) {
/* Ignored */
}
}
}

View File

@ -114,6 +114,7 @@ public class MiscUtils {
try {
c.close();
} catch (IOException ignored) {
/* Ignored */
}
}
}
@ -125,6 +126,7 @@ public class MiscUtils {
try {
c.close();
} catch (Exception ignored) {
/* Ignored */
}
}
}

View File

@ -272,6 +272,7 @@ public class DumpUtils {
if (!Verify.exists(debugFile)) {
return;
}
List<String> lines = readLines(debugFile);
log.addHeader("Debug Log");
@ -294,7 +295,7 @@ public class DumpUtils {
}
}
return null;
throw new IOException("No applicable Charset found");
}
/**

View File

@ -95,6 +95,7 @@ public class Metrics {
try {
config.save(configFile);
} catch (IOException ignored) {
/* Ignored */
}
}
@ -110,6 +111,7 @@ public class Metrics {
found = true; // We aren't the first
break;
} catch (NoSuchFieldException ignored) {
/* Ignored */
}
}
// Register our service
@ -300,9 +302,11 @@ public class Metrics {
try {
pluginData.add(provider.getService().getMethod("getPluginData").invoke(provider.getProvider()));
} catch (NullPointerException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ignored) {
/* Ignored */
}
}
} catch (NoSuchFieldException ignored) {
/* Ignored */
}
}
@ -325,7 +329,7 @@ public class Metrics {
/**
* Represents a custom chart.
*/
public static abstract class CustomChart {
public abstract static class CustomChart {
// The id of the chart
final String chartId;

View File

@ -54,6 +54,7 @@ public class UUIDUtility {
uuid = UUIDFetcher.getUUIDOf(playername);
}
} catch (Exception ignored) {
/* Ignored */
}
return uuid;
}

View File

@ -48,6 +48,7 @@ public class MockUtils {
try {
mock.addIpAddress(InetAddress.getByName("247.183.163.155"));
} catch (UnknownHostException ignored) {
/* Ignored */
}
mock.addNickname("MoreNicks");
mock.addPlayerKill(new KillData(getPlayer2UUID(), 1, "WEP", 126873643232L));