mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do trace if explicitly enabled
This commit is contained in:
@@ -96,10 +96,12 @@ public class TagNameReference implements PsiReference {
|
||||
final XmlTag tag = getTagElement();
|
||||
final XmlElementDescriptor descriptor = tag != null ? tag.getDescriptor():null;
|
||||
|
||||
LOG.debug("Descriptor for tag " +
|
||||
(tag != null ? tag.getName() : "NULL") +
|
||||
" is " +
|
||||
(descriptor != null ? (descriptor.toString() + ": " + descriptor.getClass().getCanonicalName()) : "NULL"));
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Descriptor for tag " +
|
||||
(tag != null ? tag.getName() : "NULL") +
|
||||
" is " +
|
||||
(descriptor != null ? (descriptor.toString() + ": " + descriptor.getClass().getCanonicalName()) : "NULL"));
|
||||
}
|
||||
|
||||
if (descriptor != null){
|
||||
return descriptor instanceof AnyXmlElementDescriptor ? tag : descriptor.getDeclaration();
|
||||
|
||||
Reference in New Issue
Block a user