Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
guanjh committed Dec 26, 2018
1 parent 4f196eb commit fa6eda5
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, Clas
try {
ClassLoader cl = Thread.currentThread().getContextClassLoader();
return Class.forName(name, false, cl);
}
catch (Throwable ex) {
} catch (Throwable ex) {
log.debug(ex.getMessage());
// Cannot access thread context ClassLoader - falling back...
}
Expand All @@ -33,8 +32,7 @@ protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, Clas
// No thread context class loader -> use class loader of this class.
ClassLoader cl = MultiClassLoaderObjectInputStream.class.getClassLoader();
return Class.forName(name, false, cl);
}
catch (Throwable ex) {
} catch (Throwable ex) {
log.debug(ex.getMessage());
// Cannot access thread context ClassLoader - falling back...
}
Expand All @@ -43,8 +41,7 @@ protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, Clas
try {
ClassLoader cl = ClassLoader.getSystemClassLoader();
return Class.forName(name, false, cl);
}
catch (Throwable ex) {
} catch (Throwable ex) {
log.debug(ex.getMessage());
// Cannot access system ClassLoader - oh well, maybe the caller can live with null...
}
Expand Down

0 comments on commit fa6eda5

Please sign in to comment.