offline inspections: do not check for sdks for web storm projects (IDEA-82149)

This commit is contained in:
anna
2012-03-11 17:37:36 +01:00
parent dad06256ad
commit 7a388cd27d
3 changed files with 5 additions and 5 deletions
@@ -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;