Skip to content

Commit e923ce0

Browse files
900: Code refactoring
1 parent aea28dc commit e923ce0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/com/magento/idea/magento2plugin/linemarker/xml/LineMarkerXmlTagDecorator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,10 @@ public void delete() throws IncorrectOperationException {
501501

502502
@Override
503503
public void checkDelete() throws IncorrectOperationException {
504-
xmlTag.checkDelete();
504+
if (xmlTag instanceof XmlTagImpl) {
505+
((XmlTagImpl) xmlTag).checkDelete();
506+
}
507+
throw new IncorrectOperationException(getClass().getName());
505508
}
506509

507510
@Override

0 commit comments

Comments
 (0)