Use multiple catch, try-with-resources, replace system.out and e.printStackTrace

This commit is contained in:
mezz committed 2017-06-27 22:57:10 -07:00
1 parent 10ca404e9e
commit 93025510ae
27 files changed
+62 -132

No files matched your search

@@ -162,7 +162,7 @@ public final class AnimationStateMachine implements IAnimationStateMachine
}
else
{
System.out.println("Unknown special event \"" + event.event() + "\", ignoring");
FMLLog.log.error("Unknown special event \"{}\", ignoring.", event.event());
}
}
}
@@ -230,12 +230,7 @@ public final class AnimationStateMachine implements IAnimationStateMachine
//System.out.println(location + ": " + json);
return asm;
}
catch(IOException e)
{
FMLLog.log.error("Exception loading Animation State Machine {}, skipping", location, e);
return missing;
}
catch(JsonParseException e)
catch(IOException | JsonParseException e)
{
FMLLog.log.error("Exception loading Animation State Machine {}, skipping", location, e);
return missing;