Unnecessary fully-qualified names removed

GitOrigin-RevId: 903dbd15b9f5c307d2e17747a86d5eeecaff144a
This commit is contained in:
Tagir Valeev
2022-02-16 15:30:28 +07:00
committed by intellij-monorepo-bot
parent d82e8a963a
commit 38bfebaa23
42 changed files with 72 additions and 58 deletions

View File

@@ -16,6 +16,7 @@
package org.intellij.lang.regexp;
import com.intellij.lang.LanguageExtension;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import org.jetbrains.annotations.NotNull;
@@ -37,7 +38,7 @@ public interface RegExpMatcherProvider {
* @param elementInHost the host language element the regexp is injected in
* @param sampleText the text to match on
* @param timeoutMillis stop the matching after this time, if the regexp engine is interruptible in some way
* (see e.g. {@link com.intellij.openapi.util.text.StringUtil#newBombedCharSequence(java.lang.CharSequence, long)}
* (see e.g. {@link StringUtil#newBombedCharSequence(java.lang.CharSequence, long)}
* @return the result of the match
*/
@NotNull

View File

@@ -15,7 +15,7 @@ import java.util.Iterator;
import java.util.List;
/**
* Encapsulates a work with {@link com.intellij.psi.PsiLanguageInjectionHost.Shred}.
* Encapsulates a work with {@link PsiLanguageInjectionHost.Shred}.
* An injection process overprints on the injected text which is considered as RegExp file.
* This text may contain some bogus symbols which are needed to be deleted
* to find a corresponding host element in the PSI Java file.

View File

@@ -16,7 +16,7 @@
package org.intellij.lang.regexp.psi;
/**
* Represents elements that can be part of a {@link org.intellij.lang.regexp.psi.RegExpBranch}.
* Represents elements that can be part of a {@link RegExpBranch}.
*/
public interface RegExpAtom extends RegExpElement {
}

View File

@@ -23,7 +23,7 @@ import org.jetbrains.annotations.NotNull;
public interface RegExpBranch extends RegExpElement {
/**
* Returns the atoms making up the branch.
* @see org.intellij.lang.regexp.psi.RegExpAtom
* @see RegExpAtom
*/
RegExpAtom @NotNull [] getAtoms();
}

View File

@@ -16,7 +16,7 @@
package org.intellij.lang.regexp.psi;
/**
* Represents an inline options element (?x) or (?-x). Returned from {@link org.intellij.lang.regexp.psi.RegExpSetOptions}
* Represents an inline options element (?x) or (?-x). Returned from {@link RegExpSetOptions}
*/
public interface RegExpOptions extends RegExpElement {

View File

@@ -3,6 +3,7 @@ package com.intellij.codeInsight.javadoc;
import com.intellij.lang.documentation.DocumentationMarkup;
import com.intellij.psi.*;
import com.intellij.ui.ColorUtil;
import com.intellij.util.ArrayUtil;
import com.intellij.util.ReflectionUtil;
import org.jetbrains.annotations.NotNull;
@@ -18,7 +19,7 @@ public final class JavaDocColorUtil {
public static String generatePreviewHtml(@NotNull final Color color) {
return DocumentationMarkup.SECTION_HEADER_START + "Preview:" + DocumentationMarkup.SECTION_SEPARATOR + "<p>" +
String.format("<div style=\"padding: 1px; width: 52px; height: 32px; background-color: #555555;\"><div style=\"width: 50px; height: 30px; background-color: #%s;\">&nbsp;</div></div>", com.intellij.ui.ColorUtil.toHex(color)) +
String.format("<div style=\"padding: 1px; width: 52px; height: 32px; background-color: #555555;\"><div style=\"width: 50px; height: 30px; background-color: #%s;\">&nbsp;</div></div>", ColorUtil.toHex(color)) +
DocumentationMarkup.SECTION_END;
}

View File

@@ -7,8 +7,8 @@ import com.sun.jdi.request.StepRequest;
import java.util.List;
/**
* Allows to provide custom filters for step requests
* @see StepRequest#addClassExclusionFilter(java.lang.String)
* Allows providing custom filters for step requests
* @see StepRequest#addClassExclusionFilter(String)
*/
public interface DebuggerClassFilterProvider {
ExtensionPointName<DebuggerClassFilterProvider> EP_NAME = new ExtensionPointName<>("com.intellij.debuggerClassFilterProvider");

View File

@@ -14,7 +14,7 @@ import org.jetbrains.annotations.NotNull;
* <p/>
* N.B. Please DO NOT store PSI elements inside the LocalQuickFix instance, to avoid holding too much PSI files during inspection.
* Instead, use the {@link ProblemDescriptor#getPsiElement()}
* in {@link QuickFix#applyFix(com.intellij.openapi.project.Project, CommonProblemDescriptor)}
* in {@link QuickFix#applyFix(Project, CommonProblemDescriptor)}
* to retrieve the PSI context the fix will work on.
* See also {@link LocalQuickFixOnPsiElement} which uses {@link com.intellij.psi.SmartPsiElementPointer} instead of storing PSI elements.
* <p/>

View File

@@ -13,7 +13,7 @@ import java.util.List;
/**
* An extension to perform activities before and after running inspections
* (see {@link com.intellij.codeInspection.GlobalInspectionContext}).
* (see {@link GlobalInspectionContext}).
*/
public interface GlobalInspectionContextExtension<T> {
@NotNull

View File

@@ -377,13 +377,13 @@ public interface Document extends UserDataHolder {
* In bulk mode editor(s) associated with the document will stop updating internal caches on each document change. As a result, certain
* operations with editor can return invalid results or lead to exception, if they are preformed in bulk mode. They include: querying
* or updating folding or soft wrap data, editor position recalculation functions (offset to logical position, logical to visual position,
* etc), querying or updating caret position or selection state.
* etc.), querying or updating caret position or selection state.
* <p>
* Bulk mode shouldn't span more than one thread or EDT event. Typically it should turned on/off in a try/finally statement.
* Bulk mode shouldn't span more than one thread or EDT event. Typically, it should be turned on/off in a try/finally statement.
*
* @see com.intellij.util.DocumentUtil#executeInBulk(Document, boolean, Runnable)
* @see BulkAwareDocumentListener
* @deprecated use {@link com.intellij.util.DocumentUtil#executeInBulk(com.intellij.openapi.editor.Document, boolean, java.lang.Runnable)} instead
* @deprecated use {@link com.intellij.util.DocumentUtil#executeInBulk(Document, boolean, Runnable)} instead
*/
@Deprecated
default void setInBulkUpdate(boolean value) {}

View File

@@ -20,7 +20,7 @@ public interface EditorTabColorProvider {
* @param project current IDE project.
* @param file a file you need to highlight.
* @return background color to highlight editor tab.
* @see EditorTabPresentationUtil#getEditorTabBackgroundColor(com.intellij.openapi.project.Project, com.intellij.openapi.vfs.VirtualFile)
* @see EditorTabPresentationUtil#getEditorTabBackgroundColor(Project, VirtualFile)
*/
@Nullable
Color getEditorTabColor(@NotNull Project project, @NotNull VirtualFile file);
@@ -30,7 +30,7 @@ public interface EditorTabColorProvider {
* @param project current IDE project.
* @param file a file you need to highlight.
* @return background color to highlight file row in trees and lists.
* @see EditorTabPresentationUtil#getFileBackgroundColor(com.intellij.openapi.project.Project, com.intellij.openapi.vfs.VirtualFile)
* @see EditorTabPresentationUtil#getFileBackgroundColor(Project, VirtualFile)
*/
@Nullable
default Color getProjectViewColor(@NotNull Project project, @NotNull VirtualFile file) {

View File

@@ -37,7 +37,7 @@ public interface SafeDeleteProcessorDelegate {
* @param allElementsToDelete all elements selected for deletion.
* @param result list of {@link UsageInfo} to store found usages
* @return {@code null} if element should not be searched in text occurrences/comments though corresponding settings were enabled, otherwise
* bean with the information how to detect if an element is inside all elements to delete (e.g. {@link SafeDeleteProcessor#getDefaultInsideDeletedCondition(com.intellij.psi.PsiElement[])})
* bean with the information how to detect if an element is inside all elements to delete (e.g. {@link SafeDeleteProcessor#getDefaultInsideDeletedCondition(PsiElement[])})
* and current element.
*/
@Nullable

View File

@@ -35,6 +35,7 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Supplier;
import java.util.logging.Level;
import java.util.logging.Logger;
public final class IdeaLogger extends JulLogger {
@SuppressWarnings("StaticNonFinalField") public static String ourLastActionId = "";
@@ -106,7 +107,7 @@ public final class IdeaLogger extends JulLogger {
return info.getFullApplicationName() + " " + "Build #" + info.getBuild().asString();
};
IdeaLogger(@NotNull java.util.logging.Logger logger) {
IdeaLogger(@NotNull Logger logger) {
super(logger);
}

View File

@@ -13,7 +13,7 @@ import java.util.Arrays;
import java.util.Collection;
/**
* Tracks leaks of libraries from global {@link com.intellij.openapi.roots.libraries.LibraryTable}
* Tracks leaks of libraries from global {@link LibraryTable}
* Usage:
*
* <pre>{@code

View File

@@ -6,7 +6,7 @@ import org.jetbrains.annotations.Nullable;
import java.util.function.Supplier;
/**
* Deprecated. Use {@link java.util.function.Supplier} instead.
* Deprecated. Use {@link Supplier} instead.
*/
public interface Computable<T> extends Supplier<T> {
T compute();

View File

@@ -4,7 +4,7 @@ package com.intellij.util.containers;
import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap;
/**
* @deprecated use {@link it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap} instead
* @deprecated use {@link Int2IntOpenHashMap} instead
*/
@Deprecated
public final class IntIntHashMap extends Int2IntOpenHashMap {

View File

@@ -8,10 +8,10 @@ import javax.swing.*;
/**
* The validator for input dialogs.
*
* @see Messages#showInputDialog(String, String, javax.swing.Icon, String, InputValidator)
* @see Messages#showInputDialog(java.awt.Component, String, String, javax.swing.Icon, String, InputValidator)
* @see Messages#showInputDialog(String, String, Icon, String, InputValidator)
* @see Messages#showInputDialog(java.awt.Component, String, String, Icon, String, InputValidator)
* @see Messages#showInputDialog(com.intellij.openapi.project.Project, String, String, Icon, String, InputValidator)
* @see Messages#showEditableChooseDialog(String, String, javax.swing.Icon, String[], String, InputValidator)
* @see Messages#showEditableChooseDialog(String, String, Icon, String[], String, InputValidator)
*/
public interface InputValidator {
/**

View File

@@ -20,7 +20,7 @@ import java.util.List;
/**
* Context aware VCS actions quick list.
* <p>
* Can be customized using {@link com.intellij.openapi.vcs.actions.VcsQuickListContentProvider} extension point.
* Can be customized using {@link VcsQuickListContentProvider} extension point.
*/
public class VcsQuickListPopupAction extends QuickSwitchSchemeAction implements DumbAware {
public VcsQuickListPopupAction() {

View File

@@ -56,7 +56,7 @@ public final class ChangesViewContentEP implements PluginAware {
public String predicateClassName;
/**
* Optional {@link ChangesViewContentProvider.Preloader} instance that invoked on {@link com.intellij.ui.content.Content} creation.
* Optional {@link ChangesViewContentProvider.Preloader} instance that invoked on {@link Content} creation.
* <p>
* ex: it can be used to register DnD-drop handlers.
* It can be also used to specify tab order, see {@link ChangesViewContentManager#ORDER_WEIGHT_KEY}.

View File

@@ -15,7 +15,7 @@ import java.util.Collection;
public abstract class BreakpointPanelProvider<B> {
/**
* @deprecated instead register at {@link com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule#EP}
* @deprecated instead register at {@link XBreakpointGroupingRule#EP}
*/
@Deprecated
public abstract void createBreakpointsGroupingRules(Collection<XBreakpointGroupingRule> rules);

View File

@@ -223,7 +223,7 @@ public class XValueNodeImpl extends XValueContainerNode<XValue> implements XValu
}
/** always compute evaluate expression from the base value container to avoid recalculation for watches
* @see com.intellij.xdebugger.impl.ui.tree.nodes.WatchNodeImpl#getValueContainer()
* @see WatchNodeImpl#getValueContainer()
*/
@NotNull
public final Promise<XExpression> calculateEvaluationExpression() {

View File

@@ -676,8 +676,8 @@ public abstract class Maven3XServerEmbedder extends Maven3ServerEmbedder {
if (VersionComparatorUtil.compare(getMavenVersion(), "3.6.2") >= 0) {
org.apache.maven.model.path.DefaultPathTranslator pathTranslator = new org.apache.maven.model.path.DefaultPathTranslator();
UrlNormalizer urlNormalizer = new DefaultUrlNormalizer();
container.addComponent(pathTranslator, org.apache.maven.model.path.PathTranslator.class.getName());
container.addComponent(pathTranslator, org.apache.maven.model.path.PathTranslator.class, "ide");
container.addComponent(pathTranslator, PathTranslator.class.getName());
container.addComponent(pathTranslator, PathTranslator.class, "ide");
container.addComponent(urlNormalizer, UrlNormalizer.class.getName());
container.addComponent(urlNormalizer, UrlNormalizer.class, "ide");

View File

@@ -469,7 +469,7 @@ public final class MavenModuleImporter {
}
/**
* @deprecated use {@link MavenModelUtil#getSourceLanguageLevel(org.jetbrains.idea.maven.project.MavenProject)}
* @deprecated use {@link MavenModelUtil#getSourceLanguageLevel(MavenProject)}
*/
@Deprecated
public static @NotNull LanguageLevel getLanguageLevel(MavenProject mavenProject) {
@@ -477,7 +477,7 @@ public final class MavenModuleImporter {
}
/**
* @deprecated use {@link org.jetbrains.idea.maven.importing.MavenModelUtil#getDefaultLevel(MavenProject)}
* @deprecated use {@link MavenModelUtil#getDefaultLevel(MavenProject)}
*/
@Deprecated
@NotNull

View File

@@ -656,7 +656,7 @@ public final class MavenIndex implements MavenSearchIndex {
}
/**
* @deprecated use {@link MavenIndexUtils#normalizePathOrUrl(java.lang.String)}
* @deprecated use {@link MavenIndexUtils#normalizePathOrUrl(String)}
*/
@Deprecated(forRemoval = true)
@NotNull

View File

@@ -30,7 +30,7 @@ public final class MavenProjectIndicesManager extends MavenSimpleProjectComponen
}
/**
* @deprecated use {@link MavenIndicesManager#scheduleUpdateIndicesList(com.intellij.util.Consumer)}
* @deprecated use {@link MavenIndicesManager#scheduleUpdateIndicesList(Consumer)}
*/
@Deprecated(forRemoval = true)
public void scheduleUpdateIndicesList(@Nullable Consumer<? super List<MavenIndex>> consumer) {
@@ -38,7 +38,7 @@ public final class MavenProjectIndicesManager extends MavenSimpleProjectComponen
}
/**
* @deprecated use {@link #org.jetbrains.idea.maven.indices.MavenIndicesManager#getIndex()}
* @deprecated use {@link MavenIndicesManager#getIndex()}
*/
@Deprecated(forRemoval = true)
public List<MavenIndex> getIndices() {
@@ -46,7 +46,7 @@ public final class MavenProjectIndicesManager extends MavenSimpleProjectComponen
}
/**
* @deprecated use {@link #org.jetbrains.idea.maven.indices.MavenIndicesManager#scheduleUpdate(List)}
* @deprecated use {@link MavenIndicesManager#scheduleUpdateContent(List)}
*/
@Deprecated(forRemoval = true)
public void scheduleUpdate(List<MavenIndex> indices) {

View File

@@ -324,7 +324,7 @@ public class RadContainer extends RadComponent implements IContainer {
/**
* @return border's type.
* @see com.intellij.uiDesigner.shared.BorderType
* @see BorderType
*/
@Override
@NotNull
@@ -336,7 +336,7 @@ public class RadContainer extends RadComponent implements IContainer {
* @throws IllegalArgumentException
* if {@code type}
* is {@code null}
* @see com.intellij.uiDesigner.shared.BorderType
* @see BorderType
*/
public final void setBorderType(@NotNull final BorderType type) {
if (myBorderType == type) {

View File

@@ -43,7 +43,7 @@ public abstract class PyInspectionVisitor extends PyElementVisitor {
/**
* @deprecated use {@link PyInspectionVisitor#PyInspectionVisitor(com.intellij.codeInspection.ProblemsHolder, com.jetbrains.python.psi.types.TypeEvalContext)} instead
* @deprecated use {@link PyInspectionVisitor#PyInspectionVisitor(ProblemsHolder, TypeEvalContext)} instead
*/
@Deprecated
public PyInspectionVisitor(@Nullable ProblemsHolder holder, @NotNull LocalInspectionToolSession session) {

View File

@@ -425,7 +425,7 @@ public final class PyExtractMethodUtil {
final String name = parameter.getName();
final String newName = map.get(name);
if (name != null && newName != null && !name.equals(newName)) {
final Map<PsiElement, String> allRenames = new java.util.HashMap<>();
final Map<PsiElement, String> allRenames = new HashMap<>();
allRenames.put(parameter, newName);
final UsageInfo[] usages = RenameUtil.findUsages(parameter, newName, false, false, allRenames);
try {

View File

@@ -15,6 +15,7 @@
*/
package com.jetbrains.python.validation;
import com.intellij.lang.annotation.HighlightSeverity;
import com.intellij.openapi.util.TextRange;
import com.jetbrains.python.PyNames;
import com.jetbrains.python.documentation.docstrings.*;
@@ -47,7 +48,7 @@ public class DocStringAnnotator extends PyAnnotator {
if (node.isAssignmentTo(PyNames.DOC)) {
PyExpression right = node.getAssignedValue();
if (right instanceof PyStringLiteralExpression) {
getHolder().newSilentAnnotation(com.intellij.lang.annotation.HighlightSeverity.INFORMATION).range(right).textAttributes(PyHighlighter.PY_DOC_COMMENT).create();
getHolder().newSilentAnnotation(HighlightSeverity.INFORMATION).range(right).textAttributes(PyHighlighter.PY_DOC_COMMENT).create();
annotateDocStringStmt((PyStringLiteralExpression)right);
}
}
@@ -78,7 +79,8 @@ public class DocStringAnnotator extends PyAnnotator {
while (true) {
TextRange textRange = DocStringReferenceProvider.findNextTag(stmt.getText(), pos, tags);
if (textRange == null) break;
getHolder().newSilentAnnotation(com.intellij.lang.annotation.HighlightSeverity.INFORMATION).range(textRange.shiftRight(stmt.getTextRange().getStartOffset())).textAttributes(PyHighlighter.PY_DOC_COMMENT_TAG).create();
getHolder().newSilentAnnotation(
HighlightSeverity.INFORMATION).range(textRange.shiftRight(stmt.getTextRange().getStartOffset())).textAttributes(PyHighlighter.PY_DOC_COMMENT_TAG).create();
pos = textRange.getEndOffset();
}
}

View File

@@ -25,12 +25,12 @@ import org.jetbrains.annotations.NotNull;
*/
public abstract class SuppressibleSpellcheckingStrategy extends SpellcheckingStrategy {
/**
* @see com.intellij.codeInspection.CustomSuppressableInspectionTool#isSuppressedFor(com.intellij.psi.PsiElement)
* @see com.intellij.codeInspection.CustomSuppressableInspectionTool#isSuppressedFor(PsiElement)
*/
public abstract boolean isSuppressedFor(@NotNull PsiElement element, @NotNull String name);
/**
* @see com.intellij.codeInspection.BatchSuppressableTool#getBatchSuppressActions(com.intellij.psi.PsiElement)
* @see com.intellij.codeInspection.BatchSuppressableTool#getBatchSuppressActions(PsiElement)
*/
public abstract SuppressQuickFix[] getSuppressActions(@NotNull PsiElement element, @NotNull String name);
}

View File

@@ -19,10 +19,12 @@
package org.intellij.plugins.relaxNG.xml.dom;
import com.intellij.util.xml.NamedEnum;
/**
* http://relaxng.org/ns/structure/1.0:combineAttrType enumeration.
*/
public enum Combine implements com.intellij.util.xml.NamedEnum {
public enum Combine implements NamedEnum {
CHOICE("choice"),
INTERLEAVE("interleave");

View File

@@ -19,6 +19,7 @@
package org.intellij.plugins.relaxNG.xml.dom;
import com.intellij.util.xml.Attribute;
import com.intellij.util.xml.GenericAttributeValue;
import org.intellij.plugins.relaxNG.xml.dom.names.OpenNameClasses;
import org.jetbrains.annotations.NotNull;
@@ -34,6 +35,6 @@ public interface RngAttribute extends OpenNameClasses, RngOpenPatterns {
* @return the value of the name child.
*/
@NotNull
@com.intellij.util.xml.Attribute("name")
@Attribute("name")
GenericAttributeValue<String> getNameAttr();
}

View File

@@ -20,11 +20,12 @@ import com.intellij.psi.xml.XmlElement;
import com.intellij.util.xml.Attribute;
import com.intellij.util.xml.DomElement;
import com.intellij.util.xml.GenericAttributeValue;
import com.intellij.util.xml.JavaNameStrategy;
import com.intellij.util.xml.NameStrategy;
import org.intellij.plugins.relaxNG.model.CommonElement;
import org.jetbrains.annotations.NotNull;
@NameStrategy(com.intellij.util.xml.JavaNameStrategy.class)
@NameStrategy(JavaNameStrategy.class)
public interface RngDomElement extends DomElement, CommonElement<XmlElement> {
/**
* Returns the value of the ns child.

View File

@@ -19,6 +19,7 @@
package org.intellij.plugins.relaxNG.xml.dom;
import com.intellij.util.xml.Attribute;
import com.intellij.util.xml.GenericAttributeValue;
import com.intellij.util.xml.Namespace;
import org.intellij.plugins.relaxNG.xml.dom.names.OpenNameClasses;
@@ -36,6 +37,6 @@ public interface RngElement extends OpenNameClasses, RngOpenPatterns {
* @return the value of the name child.
*/
@NotNull
@com.intellij.util.xml.Attribute("name")
@Attribute("name")
GenericAttributeValue<String> getNameAttr();
}

View File

@@ -21,6 +21,7 @@ package org.intellij.plugins.relaxNG.xml.dom;
import com.intellij.psi.xml.XmlElement;
import com.intellij.psi.xml.XmlFile;
import com.intellij.util.xml.Attribute;
import com.intellij.util.xml.Convert;
import com.intellij.util.xml.GenericAttributeValue;
import com.intellij.util.xml.Required;
@@ -41,6 +42,6 @@ public interface RngExternalRef extends RngDomElement, Pattern<XmlElement> {
@NotNull
@Required
@Convert(RngHrefConverter.class)
@com.intellij.util.xml.Attribute("href")
@Attribute("href")
GenericAttributeValue<XmlFile> getReferencedFile();
}

View File

@@ -21,6 +21,7 @@ package org.intellij.plugins.relaxNG.xml.dom;
import com.intellij.psi.xml.XmlElement;
import com.intellij.psi.xml.XmlFile;
import com.intellij.util.xml.Attribute;
import com.intellij.util.xml.Convert;
import com.intellij.util.xml.GenericAttributeValue;
import com.intellij.util.xml.Required;
@@ -41,6 +42,6 @@ public interface RngInclude extends RngIncludeContent, Include<XmlElement, RngDe
@NotNull
@Required
@Convert(RngHrefConverter.class)
@com.intellij.util.xml.Attribute("href")
@Attribute("href")
GenericAttributeValue<XmlFile> getIncludedFile();
}

View File

@@ -3,6 +3,7 @@ package com.intellij.codeInsight.daemon.impl.analysis;
import com.intellij.lang.annotation.AnnotationHolder;
import com.intellij.lang.annotation.Annotator;
import com.intellij.lang.annotation.HighlightSeverity;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiElement;
@@ -24,11 +25,11 @@ public class XmlNamespaceAnnotator implements Annotator {
if (key != null) {
TextRange range = XmlTagUtil.getStartTagRange(tag);
if (range != null) {
holder.newSilentAnnotation(com.intellij.lang.annotation.HighlightSeverity.INFORMATION).range(range).textAttributes(key).create();
holder.newSilentAnnotation(HighlightSeverity.INFORMATION).range(range).textAttributes(key).create();
}
TextRange endTagRange = XmlTagUtil.getEndTagRange(tag);
if (endTagRange != null) {
holder.newSilentAnnotation(com.intellij.lang.annotation.HighlightSeverity.INFORMATION).range(endTagRange).textAttributes(key).create();
holder.newSilentAnnotation(HighlightSeverity.INFORMATION).range(endTagRange).textAttributes(key).create();
}
return;
}

View File

@@ -17,6 +17,7 @@ package com.intellij.codeInsight.daemon.impl.analysis;
import com.intellij.lang.annotation.AnnotationHolder;
import com.intellij.lang.annotation.Annotator;
import com.intellij.lang.annotation.HighlightSeverity;
import com.intellij.openapi.editor.XmlHighlighterColors;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiElement;
@@ -46,7 +47,7 @@ public class XmlNsPrefixAnnotator implements Annotator {
if (rangeInElement.isEmpty()) continue;
TextRange range = rangeInElement.shiftRight(ref.getElement().getTextRange().getStartOffset());
if (!range.intersects(elementRange)) continue;
holder.newSilentAnnotation(com.intellij.lang.annotation.HighlightSeverity.INFORMATION).range(range).textAttributes(XmlHighlighterColors.XML_NS_PREFIX).create();
holder.newSilentAnnotation(HighlightSeverity.INFORMATION).range(range).textAttributes(XmlHighlighterColors.XML_NS_PREFIX).create();
}
}
}

View File

@@ -25,7 +25,7 @@ import org.jetbrains.annotations.NotNull;
/**
* @author Maxim Mossienko
* @see com.intellij.xml.impl.ExternalDocumentValidator
* @see ExternalDocumentValidator
*/
public class CheckXmlFileWithXercesValidatorInspection extends XmlSuppressableInspectionTool implements UnfairLocalInspectionTool {

View File

@@ -10,8 +10,8 @@ import org.jetbrains.annotations.NotNull;
import java.util.Map;
/**
* @deprecated use {@link com.intellij.xml.psi.XmlPsiBundle} instead. Some of the message keys needs to be updated.
* See @link {@link XmlErrorMessages#keyMappings}}
* @deprecated use {@link XmlPsiBundle} instead. Some message keys needs to be updated.
* See {@link XmlErrorMessages#keyMappings}
*/
@Deprecated(forRemoval = true)
public class XmlErrorMessages {
@@ -26,7 +26,7 @@ public class XmlErrorMessages {
);
/**
* @deprecated use {@link com.intellij.xml.psi.XmlPsiBundle#message} instead
* @deprecated use {@link XmlPsiBundle#message} instead
*/
@Deprecated
public static @Nls String message(@NotNull String key, Object @NotNull ... params) {

View File

@@ -26,7 +26,7 @@ import java.util.List;
/**
* This masquerading lexer cuts out `myIndent` spaces/tabs after each newline in the text passed to this lexer.
* The string without these parts (indents) is then passed to a delegate lexer to lex correctly without these indents.
* The production of this lexer can also be effectively used in {@link com.intellij.embedding.MasqueradingPsiBuilderAdapter}
* The production of this lexer can also be effectively used in {@link MasqueradingPsiBuilderAdapter}
* to parse the text without these indents.
*/
public class IndentEatingLexer extends MasqueradingLexer.SmartDelegate {

View File

@@ -24,7 +24,7 @@ import org.jetbrains.annotations.Nullable;
/**
* A lexer which additionally providers information concerning whether a token
* should be used in parsing (and be exposed to a parser) or be hidden to parser
* @see com.intellij.embedding.MasqueradingPsiBuilderAdapter
* @see MasqueradingPsiBuilderAdapter
*/
public abstract class MasqueradingLexer extends DelegateLexer {