Applying Benedikt Ritter's patch to fix the Checkstyle error in SerializationUtils - LANG-793
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1301321 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e9d6891549
commit
f1ba9c252d
|
@ -280,10 +280,11 @@ public class SerializationUtils {
|
|||
return Class.forName(name, false, Thread.currentThread().getContextClassLoader());
|
||||
} catch (ClassNotFoundException cnfe) {
|
||||
Class<?> cls = primitiveTypes.get(name);
|
||||
if (cls != null)
|
||||
if (cls != null) {
|
||||
return cls;
|
||||
else
|
||||
} else {
|
||||
throw cnfe;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue