Skip to content

Commit 1e69a11

Browse files
committed
Cache null classes to improve performance
1 parent 04c41dc commit 1e69a11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ProtocolLib/src/main/java/com/comphenix/protocol/utility/CachedPackage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public Class<?> getPackageClass(String className) {
7575
return result;
7676

7777
} catch (ClassNotFoundException e) {
78+
setPackageClass(className, null);
7879
throw new RuntimeException("Cannot find class " + className, e);
7980
}
8081
}

0 commit comments

Comments
 (0)