Shut up compile warnings

This commit is contained in:
yushijinhun 2018-12-30 14:38:27 +08:00
parent eb830c9c9f
commit b59400f3dd
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4

View File

@ -50,6 +50,7 @@ public final class Logging {
String exception = "";
if (record.getThrown() != null) {
StringWriter sw = new StringWriter();
@SuppressWarnings("resource")
PrintWriter pw = new PrintWriter(sw);
pw.println();
record.getThrown().printStackTrace(pw);