mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix XmlUnusedNamespaceInspection CCE
This commit is contained in:
+4
-1
@@ -53,7 +53,10 @@ public class XmlUnusedNamespaceInspection extends XmlSuppressableInspectionTool
|
||||
return new XmlElementVisitor() {
|
||||
@Override
|
||||
public void visitXmlAttribute(XmlAttribute attribute) {
|
||||
XmlRefCountHolder refCountHolder = XmlRefCountHolder.getRefCountHolder((XmlFile)holder.getFile());
|
||||
PsiFile file = holder.getFile();
|
||||
if (!(file instanceof XmlFile)) return;
|
||||
|
||||
XmlRefCountHolder refCountHolder = XmlRefCountHolder.getRefCountHolder((XmlFile)file);
|
||||
if (refCountHolder == null) return;
|
||||
if (!attribute.isNamespaceDeclaration()) {
|
||||
checkUnusedLocations(attribute, holder, refCountHolder);
|
||||
|
||||
Reference in New Issue
Block a user