mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
improper configured library: check if files number is less than urls number, as jar directory may contain more than one file (IDEA-99355)
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ public class GlobalJavaInspectionContextImpl extends GlobalJavaInspectionContext
|
||||
else if (entry instanceof LibraryOrderEntry) {
|
||||
final LibraryOrderEntry libraryOrderEntry = (LibraryOrderEntry)entry;
|
||||
final Library library = libraryOrderEntry.getLibrary();
|
||||
if (library == null || library.getFiles(OrderRootType.CLASSES).length != library.getUrls(OrderRootType.CLASSES).length) {
|
||||
if (library == null || library.getFiles(OrderRootType.CLASSES).length < library.getUrls(OrderRootType.CLASSES).length) {
|
||||
System.err.println(InspectionsBundle.message("offline.inspections.library.was.not.resolved",
|
||||
libraryOrderEntry.getPresentableName(), module.getName()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user