mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Remove useless try-catch block
This commit is contained in:
1 parent
b9b80dcf66
commit
f69f4a896d
1 file changed
-6
@@ -96,7 +96,6 @@ public class EnvironmentChecker {
|
||||
}
|
||||
try {
|
||||
EnvCheckEntry envCheckEntry = declaredMethod.getAnnotation(EnvCheckEntry.class);
|
||||
try {
|
||||
ResultContainer executeResult = (ResultContainer) declaredMethod.invoke(this);
|
||||
//plugin.getLogger().info("Result: "+executeResult.getResultMessage());
|
||||
if (executeResult.getResult().ordinal() > result.ordinal()) { //set bad result if it worse than latest one.
|
||||
@@ -126,11 +125,6 @@ public class EnvironmentChecker {
|
||||
break;
|
||||
}
|
||||
results.put(envCheckEntry, executeResult);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
plugin.getLogger().warning("Failed executing EnvCheckEntry [" + declaredMethod.getName() + "]: Exception thrown out without caught. Something going wrong!");
|
||||
plugin.getLogger().warning("[FAIL] " + envCheckEntry.name() + ": Uncaught exception.");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
plugin.getLogger().warning("Failed executing EnvCheckEntry [" + declaredMethod.getName() + "]: Exception thrown out without caught. Something going wrong!");
|
||||
|
||||
Reference in new issue
Block a user