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:
Henri Yandell 2012-03-16 03:11:36 +00:00
parent e9d6891549
commit f1ba9c252d
1 changed files with 3 additions and 2 deletions

View File

@ -280,10 +280,11 @@ public class SerializationUtils {
return Class.forName(name, false, Thread.currentThread().getContextClassLoader()); return Class.forName(name, false, Thread.currentThread().getContextClassLoader());
} catch (ClassNotFoundException cnfe) { } catch (ClassNotFoundException cnfe) {
Class<?> cls = primitiveTypes.get(name); Class<?> cls = primitiveTypes.get(name);
if (cls != null) if (cls != null) {
return cls; return cls;
else } else {
throw cnfe; throw cnfe;
}
} }
} }
} }