mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 21:17:32 +00:00
Implemented PackageFinder.find in ClassPathFinder
This commit is contained in:
1 parent
a77b550b21
commit
f785b034ff
1 file changed
+7
-2
@@ -306,9 +306,14 @@ public class ClassPathFinder {
|
||||
if (validPackages.contains(packagePath)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Try to consult the global PackageFinder index if initialized (fast O(1) lookup)
|
||||
if (PackageFinder.find(packagePath)) {
|
||||
registerValidPackage(packagePath);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Try to find any class under this package to validate it
|
||||
// Common test classes for well-known packages
|
||||
// Fallback: try to find any class under this package to validate it
|
||||
String[] testClasses = getTestClassesForPackage(packagePath);
|
||||
for (String testClass : testClasses) {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user