Skip to content

Commit 0062cb7

Browse files
committed
Added FIXME
1 parent 45a7692 commit 0062cb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/jboss/netty/handler/codec/serialization/CompactObjectInputStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,13 @@ protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, Clas
7878
try {
7979
return loadClass(className);
8080
} catch (ClassNotFoundException ex) {
81+
// FIXME Cache the result to avoid the cost of ClassNotFoundException.
8182
return super.resolveClass(desc);
8283
}
8384
}
8485

8586
protected Class<?> loadClass(String className) throws ClassNotFoundException {
87+
// FIXME Cache the result to avoid the cost of loading classes.
8688
Class<?> clazz;
8789
ClassLoader classLoader = this.classLoader;
8890
if (classLoader == null) {

0 commit comments

Comments
 (0)