mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 21:15:58 +07:00
offline inspections: do not check for sdks for web storm projects (IDEA-82149)
This commit is contained in:
+1
-2
@@ -123,11 +123,10 @@ public class GlobalJavaInspectionContextImpl extends GlobalJavaInspectionContext
|
||||
}
|
||||
for (Module module : modules) {
|
||||
final ModuleRootManager rootManager = ModuleRootManager.getInstance(module);
|
||||
final Sdk jdk = rootManager.getSdk();
|
||||
final OrderEntry[] entries = rootManager.getOrderEntries();
|
||||
for (OrderEntry entry : entries) {
|
||||
if (entry instanceof JdkOrderEntry) {
|
||||
if (jdk == null) {
|
||||
if (!ModuleType.get(module).isValidSdk(module, null)) {
|
||||
System.err.println(InspectionsBundle.message("offline.inspections.module.jdk.not.found", ((JdkOrderEntry)entry).getJdkName(),
|
||||
module.getName()));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user