Skip to content

Commit

Permalink
Update DefaultClassResolver.java
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Oct 28, 2024
1 parent 085d223 commit b76599d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/com/esotericsoftware/kryo/util/DefaultClassResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,6 @@ protected Registration readName (Input input) {
String className = input.readString();
type = getTypeByName(className);
if (type == null) {
try {
type = Class.forName(className, false, kryo.getClassLoader());
} catch (ClassNotFoundException ex) {
// Fallback to Kryo's class loader.
try {
type = Class.forName(className, false, Kryo.class.getClassLoader());
} catch (ClassNotFoundException ex2) {
throw new KryoException("Unable to find class: " + className, ex);
}
}
try {
type = Class.forName(className, false, kryo.getClassLoader());
} catch (ClassNotFoundException ex) {
Expand Down

0 comments on commit b76599d

Please sign in to comment.