mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
[java, highlighting] Fix module conflict highlighting for exported packages IDEA-352819
GitOrigin-RevId: d4479fb863280674ae8960c930e6e8b1628b7321
This commit is contained in:
committed by
intellij-monorepo-bot
parent
25cb51da31
commit
f590114d83
@@ -80,9 +80,14 @@ final class ModuleHighlightUtil {
|
||||
if (rootForFile != null && JavaCompilerConfigurationProxy.isPatchedModuleRoot(anotherJavaModule.getName(), module, rootForFile)) {
|
||||
return null;
|
||||
}
|
||||
return HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR)
|
||||
.range(reference)
|
||||
.descriptionAndTooltip(JavaErrorBundle.message("module.conflicting.packages", pack.getName(), anotherJavaModule.getName()));
|
||||
for (PsiPackageAccessibilityStatement export : anotherJavaModule.getExports()) {
|
||||
String exportPackageName = export.getPackageName();
|
||||
if (exportPackageName != null && exportPackageName.equals(pack.getQualifiedName())) {
|
||||
return HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR)
|
||||
.range(reference)
|
||||
.descriptionAndTooltip(JavaErrorBundle.message("module.conflicting.packages", pack.getQualifiedName(), anotherJavaModule.getName()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user