inspection view: do not show empty package node under module-info node (re-fix for ec0783f)

This commit is contained in:
Dmitry Batkovich
2017-11-03 12:53:46 +01:00
parent 3d23185f56
commit 5a3de53477
3 changed files with 2 additions and 9 deletions

View File

@@ -304,7 +304,7 @@ public class RefJavaUtilImpl extends RefJavaUtil{
@Override
@Nullable
public String getPackageName(RefEntity refEntity) {
if (refEntity instanceof RefProject || refEntity instanceof RefJavaFileImpl && ((RefJavaFileImpl)refEntity).isModuleFile()) {
if (refEntity instanceof RefProject || refEntity instanceof RefJavaModule) {
return null;
}
RefPackage refPackage = getPackage(refEntity);