Skip to content

Commit

Permalink
Don't print exception when Unsafe is unavailable.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Oct 30, 2018
1 parent eec2c3f commit d4868de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/com/esotericsoftware/kryo/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public class Util {
found = Class.forName("com.esotericsoftware.kryo.unsafe.UnsafeUtil", true, FieldSerializer.class.getClassLoader())
.getField("unsafe").get(null) != null;
} catch (Throwable ex) {
ex.printStackTrace();
if (TRACE) trace("kryo", "Unsafe is unavailable.");
if (TRACE) trace("kryo", "Unsafe is unavailable.", ex);
}
unsafe = found;
}
Expand Down

0 comments on commit d4868de

Please sign in to comment.