cleanup: remove redundant '@author' tags from javadoc comments - 9

Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: fcf3f973d7c945698016443c015023e73ac71572
This commit is contained in:
Nikolay Chashnikov
2023-01-18 09:50:50 +01:00
committed by intellij-monorepo-bot
parent eecd5049ee
commit c1f2c8a692
168 changed files with 0 additions and 489 deletions

View File

@@ -25,9 +25,6 @@ import com.intellij.ui.EditorNotificationPanel.ActionHandler;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author Pavel.Dolgov
*/
public class JavaProjectSdkSetupValidator implements ProjectSdkSetupValidator {
public static final JavaProjectSdkSetupValidator INSTANCE = new JavaProjectSdkSetupValidator();

View File

@@ -23,9 +23,6 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @author Pavel.Dolgov
*/
public interface RefJavaModule extends RefElement {
Key<RefJavaModule> JAVA_MODULE = Key.create("JAVA_MODULE");

View File

@@ -16,9 +16,6 @@ import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
/**
* @author Pavel.Dolgov
*/
public abstract class MergeModuleStatementsFix<T extends PsiStatement> extends LocalQuickFixAndIntentionActionOnPsiElement {
protected MergeModuleStatementsFix(@NotNull PsiJavaModule javaModule) {
super(javaModule);

View File

@@ -17,9 +17,6 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* @author Pavel.Dolgov
*/
public class MergePackageAccessibilityStatementsFix
extends MergeModuleStatementsFix<PsiPackageAccessibilityStatement> {

View File

@@ -11,9 +11,6 @@ import org.jetbrains.annotations.Nullable;
import java.util.Arrays;
import java.util.List;
/**
* @author Pavel.Dolgov
*/
public class MergeProvidesStatementsFix extends MergeModuleStatementsFix<PsiProvidesStatement> {
private final String myInterfaceName;

View File

@@ -20,9 +20,6 @@ import org.jetbrains.annotations.Nullable;
import java.util.*;
/**
* @author Pavel.Dolgov
*/
public class Java9ModuleEntryPoint extends EntryPointWithVisibilityLevel {
public static final String ID = "moduleInfo";

View File

@@ -13,9 +13,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.List;
/**
* @author Pavel.Dolgov
*/
public class Java9ModuleExportsPackageToItselfInspection extends AbstractBaseJavaLocalInspectionTool {
@NotNull
@Override

View File

@@ -24,9 +24,6 @@ import org.jetbrains.uast.UastContextKt;
import java.util.*;
import java.util.stream.Stream;
/**
* @author Pavel.Dolgov
*/
public final class Java9RedundantRequiresStatementInspection extends GlobalJavaBatchInspectionTool {
private static final Key<Set<String>> IMPORTED_JAVA_PACKAGES = Key.create("imported_java_packages");

View File

@@ -40,9 +40,6 @@ import static com.intellij.psi.CommonClassNames.*;
import static com.siyeh.ig.callMatcher.CallMatcher.anyOf;
import static com.siyeh.ig.callMatcher.CallMatcher.staticCall;
/**
* @author Pavel.Dolgov
*/
public final class JavaReflectionReferenceUtil {
// MethodHandle (Java 7) and VarHandle (Java 9) infrastructure
public static final String JAVA_LANG_INVOKE_METHOD_HANDLES_LOOKUP = "java.lang.invoke.MethodHandles.Lookup";

View File

@@ -9,9 +9,6 @@ import com.intellij.util.containers.ObjectIntMap;
import java.util.List;
/**
* @author Pavel.Dolgov
*/
class ComplexityHolder {
static final int MAX_ACCEPTABLE = 12;
static final int TOO_COMPLEX = 100;

View File

@@ -11,9 +11,6 @@ import org.jetbrains.annotations.Nullable;
import java.util.List;
/**
* @author Pavel.Dolgov
*/
public final class ExtractableExpressionPart {
final PsiExpression myUsage;
final PsiVariable myVariable;

View File

@@ -25,9 +25,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.*;
/**
* @author Pavel.Dolgov
*/
public class ExtractedParameter {
@NotNull public final PsiType myType;
@NotNull public final ExtractableExpressionPart myPattern;

View File

@@ -37,9 +37,6 @@ import org.jetbrains.annotations.Nullable;
import java.util.*;
import java.util.function.Predicate;
/**
* @author Pavel.Dolgov
*/
public final class DuplicateBranchesInSwitchInspection extends LocalInspectionTool {
private static final Logger LOG = Logger.getInstance(DuplicateBranchesInSwitchInspection.class);

View File

@@ -31,8 +31,6 @@ import static com.siyeh.ig.psiutils.VariableAccessUtils.variableIsUsed;
/**
* It's called "Java" inspection because the name without "Java" already exists.
*
* @author Pavel.Dolgov
*/
public class JoinDeclarationAndAssignmentJavaInspection extends AbstractBaseJavaLocalInspectionTool {
@NotNull

View File

@@ -51,7 +51,6 @@ import static com.siyeh.ig.callMatcher.CallMatcher.*;
import static com.siyeh.ig.psiutils.MethodCallUtils.getQualifierMethodCall;
/**
* @author Pavel.Dolgov
* @author Tagir Valeev
*/
public class SimplifyStreamApiCallChainsInspection extends AbstractBaseJavaLocalInspectionTool {

View File

@@ -16,9 +16,6 @@ import org.jetbrains.annotations.Nullable;
import static com.intellij.java.JavaBundle.message;
/**
* @author Pavel.Dolgov
*/
public class RedundantLabeledSwitchRuleCodeBlockInspection extends LocalInspectionTool {
@NotNull
@Override

View File

@@ -17,9 +17,6 @@ import org.jetbrains.annotations.NotNull;
import static com.intellij.java.JavaBundle.message;
/**
* @author Pavel.Dolgov
*/
public class SwitchLabeledRuleCanBeCodeBlockInspection extends LocalInspectionTool {
@NotNull
@Override

View File

@@ -26,9 +26,6 @@ import org.jetbrains.annotations.Nullable;
import java.util.*;
/**
* @author Pavel.Dolgov
*/
public final class ReturnSeparatedFromComputationInspection extends AbstractBaseJavaLocalInspectionTool {
private static final Logger LOG = Logger.getInstance(ReturnSeparatedFromComputationInspection.class);

View File

@@ -57,9 +57,6 @@ import java.util.regex.Pattern;
import static com.intellij.ide.fileTemplates.JavaTemplateUtil.INTERNAL_MODULE_INFO_TEMPLATE_NAME;
import static com.intellij.psi.PsiJavaModule.*;
/**
* @author Pavel.Dolgov
*/
public final class Java9GenerateModuleDescriptorsAction extends AnAction {
private static final Logger LOG = Logger.getInstance(Java9GenerateModuleDescriptorsAction.class);

View File

@@ -13,9 +13,6 @@ import org.jetbrains.annotations.NotNull;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.ReflectiveType;
/**
* @author Pavel.Dolgov
*/
public class Java9UndeclaredServiceUsageInspection extends AbstractBaseJavaLocalInspectionTool {
@NotNull
@Override

View File

@@ -19,9 +19,6 @@ import java.util.List;
import static com.intellij.psi.CommonClassNames.JAVA_LANG_CLASS;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.*;
/**
* @author Pavel.Dolgov
*/
public class Java9ReflectionClassVisibilityInspection extends AbstractBaseJavaLocalInspectionTool {
@NotNull

View File

@@ -31,9 +31,6 @@ import static com.intellij.codeInspection.reflectiveAccess.JavaLangReflectVarHan
import static com.intellij.psi.CommonClassNames.JAVA_LANG_OBJECT;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.*;
/**
* @author Pavel.Dolgov
*/
public class JavaLangInvokeHandleSignatureInspection extends AbstractBaseJavaLocalInspectionTool {
public static final Key<ReflectiveSignature> DEFAULT_SIGNATURE = Key.create("DEFAULT_SIGNATURE");
public static final Key<List<LookupElement>> POSSIBLE_SIGNATURES = Key.create("POSSIBLE_SIGNATURES");

View File

@@ -23,9 +23,6 @@ import java.util.function.Supplier;
import static com.intellij.psi.CommonClassNames.JAVA_UTIL_LIST;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.*;
/**
* @author Pavel.Dolgov
*/
final class JavaLangReflectHandleInvocationChecker {
private static final Logger LOG = Logger.getInstance(JavaLangReflectHandleInvocationChecker.class);

View File

@@ -19,9 +19,6 @@ import java.util.Set;
import static com.intellij.codeInspection.reflectiveAccess.JavaLangReflectHandleInvocationChecker.*;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.*;
/**
* @author Pavel.Dolgov
*/
final class JavaLangReflectVarHandleInvocationChecker {
private static final Logger LOG = Logger.getInstance(JavaLangReflectVarHandleInvocationChecker.class);

View File

@@ -22,9 +22,6 @@ import static com.intellij.psi.CommonClassNames.JAVA_LANG_CLASS;
import static com.intellij.psi.CommonClassNames.JAVA_LANG_OBJECT;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.*;
/**
* @author Pavel.Dolgov
*/
public class JavaReflectionInvocationInspection extends AbstractBaseJavaLocalInspectionTool {
private static final String JAVA_LANG_REFLECT_METHOD = "java.lang.reflect.Method";

View File

@@ -30,9 +30,6 @@ import static com.intellij.codeInspection.options.OptPane.*;
import static com.intellij.psi.CommonClassNames.*;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.*;
/**
* @author Pavel.Dolgov
*/
public class JavaReflectionMemberAccessInspection extends AbstractBaseJavaLocalInspectionTool {
private static final Set<String> MEMBER_METHOD_NAMES = Set.of(GET_FIELD, GET_DECLARED_FIELD,

View File

@@ -14,9 +14,6 @@ import org.jetbrains.annotations.Nullable;
import java.util.*;
/**
* @author Pavel.Dolgov
*/
public class ExtractMethodSnapshot {
public static final Key<ExtractMethodSnapshot> SNAPSHOT_KEY = Key.create("ExtractMethodSnapshot");

View File

@@ -24,9 +24,6 @@ import org.jetbrains.annotations.Nullable;
import java.util.*;
import java.util.function.Consumer;
/**
* @author Pavel.Dolgov
*/
public class JavaDuplicatesExtractMethodProcessor extends ExtractMethodProcessor {
private static final Logger LOG = Logger.getInstance(JavaDuplicatesExtractMethodProcessor.class);

View File

@@ -26,9 +26,6 @@ import java.util.*;
import java.util.function.BiConsumer;
import java.util.function.Predicate;
/**
* @author Pavel.Dolgov
*/
public final class ParametrizedDuplicates {
private static final Logger LOG = Logger.getInstance(ParametrizedDuplicates.class);

View File

@@ -4,9 +4,6 @@ package com.intellij.refactoring.extractMethod;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author Pavel.Dolgov
*/
class ReusedLocalVariable {
@NotNull private final String myName;
@Nullable private final String myTempName;

View File

@@ -15,8 +15,6 @@ import java.util.*;
/**
* Finds local variables declared inside a code fragment and then used outside of that code fragment
*
* @author Pavel.Dolgov
*/
final class ReusedLocalVariablesFinder {
private final ControlFlow myControlFlow;

View File

@@ -8,9 +8,6 @@ import com.intellij.refactoring.util.VariableData;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author Pavel.Dolgov
*/
class VariableDataSnapshot extends AbstractVariableData {
@Nullable private final SmartPsiElementPointer<PsiVariable> myVariable;
@Nullable private final SmartTypePointer myType;

View File

@@ -4,9 +4,6 @@ package com.intellij.refactoring.extractMethod.preview;
import com.intellij.refactoring.util.duplicates.Match;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
class DuplicateNode extends FragmentNode {
private boolean myExcluded;

View File

@@ -7,9 +7,6 @@ import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
class ElementsRange {
private final PsiElement myStart;
private final PsiElement myEnd;

View File

@@ -8,9 +8,6 @@ import com.intellij.diff.requests.DiffRequest;
import com.intellij.util.concurrency.annotations.RequiresEdt;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
public class ExtractMethodDiffViewerCustomizer extends DiffExtension {
@RequiresEdt
@Override

View File

@@ -9,9 +9,6 @@ import com.intellij.psi.SmartPsiElementPointer;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author Pavel.Dolgov
*/
class ExtractableFragment {
private final SmartPsiElementPointer<PsiElement> myStart;
private final SmartPsiElementPointer<PsiElement> myEnd;

View File

@@ -21,9 +21,6 @@ import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author Pavel.Dolgov
*/
abstract class FragmentNode extends DefaultMutableTreeNode implements Comparable<FragmentNode> {
private final @NotNull TextChunk @NotNull [] myTextChunks;
private final TextChunk myLineNumberChunk;

View File

@@ -15,9 +15,6 @@ import javax.swing.*;
import java.util.ArrayList;
import java.util.List;
/**
* @author Pavel.Dolgov
*/
class MethodNode extends FragmentNode {
private final Icon myIcon;

View File

@@ -4,9 +4,6 @@ package com.intellij.refactoring.extractMethod.preview;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
class PatternNode extends FragmentNode {
PatternNode(PsiElement @NotNull [] elements) {
super(elements[0], elements[elements.length - 1], new ExtractableFragment(elements));

View File

@@ -53,9 +53,6 @@ import org.jetbrains.annotations.Nullable;
import java.util.*;
/**
* @author Pavel.Dolgov
*/
final class PreviewDiffPanel extends BorderLayoutPanel implements Disposable, PreviewTreeListener {
private final Project myProject;
private final PreviewTree myTree;

View File

@@ -23,9 +23,6 @@ import java.util.Map;
import java.util.function.Consumer;
import java.util.function.Function;
/**
* @author Pavel.Dolgov
*/
class PreviewDiffRequest extends SimpleDiffRequest {
private static final Logger LOG = Logger.getInstance(PreviewDiffRequest.class);

View File

@@ -6,9 +6,6 @@ import org.jetbrains.annotations.NotNull;
import javax.swing.tree.DefaultMutableTreeNode;
/**
* @author Pavel.Dolgov
*/
class PreviewExclusionHandler implements ExclusionHandler<DefaultMutableTreeNode> {
private final PreviewPanel myPanel;

View File

@@ -33,9 +33,6 @@ import java.awt.*;
import java.util.List;
import java.util.Optional;
/**
* @author Pavel.Dolgov
*/
class PreviewPanel extends BorderLayoutPanel implements Disposable, DataProvider {
private final Project myProject;
private final PreviewTree myTree;

View File

@@ -25,9 +25,6 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* @author Pavel.Dolgov
*/
class PreviewTree implements Disposable {
private final Project myProject;
private final Tree myTree;

View File

@@ -3,9 +3,6 @@ package com.intellij.refactoring.extractMethod.preview;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
interface PreviewTreeListener {
void onNodeSelected(@NotNull FragmentNode node);
}

View File

@@ -16,9 +16,6 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* @author Pavel.Dolgov
*/
class PreviewTreeModel extends DefaultTreeModel {
private final DefaultMutableTreeNode myDuplicatesGroup;
private final DefaultMutableTreeNode myMethodGroup;

View File

@@ -12,9 +12,6 @@ import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
/**
* @author Pavel.Dolgov
*/
class PreviewTreeRenderer extends ColoredTreeCellRenderer {
@Override
public void customizeCellRenderer(@NotNull JTree tree, Object value,

View File

@@ -30,9 +30,6 @@ import org.jetbrains.annotations.Nullable;
import java.util.*;
import java.util.stream.Collectors;
/**
* @author Pavel.Dolgov
*/
public class AddAnnotationAttributeNameFix extends LocalQuickFixAndIntentionActionOnPsiElement implements IntentionActionWithFixAllOption {
private final String myName;

View File

@@ -31,9 +31,6 @@ import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author Pavel.Dolgov
*/
public class ConvertCollectionToArrayFix implements IntentionAction {
private final PsiExpression myCollectionExpression;
private final PsiExpression myExpressionToReplace;

View File

@@ -28,9 +28,6 @@ import java.util.Objects;
import static com.intellij.codeInsight.daemon.impl.quickfix.CreateFromUsageUtils.scheduleFileOrPackageCreationFailedMessageBox;
/**
* @author Pavel.Dolgov
*/
public abstract class CreateServiceClassFixBase implements IntentionAction {
public static final Key<PsiDirectory> SERVICE_ROOT_DIR = Key.create("SERVICE_ROOT_DIR");
public static final Key<CreateClassKind> SERVICE_CLASS_KIND = Key.create("SERVICE_CLASS_KIND");

View File

@@ -33,9 +33,6 @@ import javax.swing.*;
import java.util.Collections;
import java.util.Optional;
/**
* @author Pavel.Dolgov
*/
public class CreateServiceImplementationClassFix extends CreateServiceClassFixBase {
private String mySuperClassName;
private String myImplementationClassName;

View File

@@ -35,9 +35,6 @@ import java.util.Arrays;
import java.util.Comparator;
import java.util.Map;
/**
* @author Pavel.Dolgov
*/
public class CreateServiceInterfaceOrClassFix extends CreateServiceClassFixBase {
private @NlsSafe String myInterfaceName;

View File

@@ -30,9 +30,6 @@ import com.siyeh.ig.psiutils.VariableNameGenerator;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
public final class ReplaceIteratorForEachLoopWithIteratorForLoopFix implements IntentionAction {
private final PsiForeachStatement myStatement;

View File

@@ -38,9 +38,6 @@ import java.util.Comparator;
import java.util.List;
import java.util.Objects;
/**
* @author Pavel.Dolgov
*/
public final class CreateClassInPackageInModuleFix implements IntentionAction {
public static final Key<Boolean> IS_INTERFACE = Key.create("CREATE_CLASS_IN_PACKAGE_IS_INTERFACE");
public static final Key<PsiDirectory> ROOT_DIR = Key.create("CREATE_CLASS_IN_PACKAGE_ROOT_DIR");

View File

@@ -24,9 +24,6 @@ import static com.intellij.psi.util.PsiTreeUtil.getNextSiblingOfType;
import static com.intellij.psi.util.PsiTreeUtil.getPrevSiblingOfType;
import static com.siyeh.ig.psiutils.ControlFlowUtils.statementMayCompleteNormally;
/**
* @author Pavel.Dolgov
*/
public class SplitSwitchBranchWithSeveralCaseValuesAction extends PsiElementBaseIntentionAction {
@Nls(capitalization = Nls.Capitalization.Sentence)

View File

@@ -29,9 +29,6 @@ import com.siyeh.ig.psiutils.ControlFlowUtils;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
public class UnwrapElseBranchAction extends PsiElementBaseIntentionAction {
private static final Logger LOG = Logger.getInstance(UnwrapElseBranchAction.class);

View File

@@ -28,9 +28,6 @@ import java.util.Set;
import static com.intellij.psi.CommonClassNames.*;
import static com.intellij.util.ObjectUtils.tryCast;
/**
* @author Pavel.Dolgov
*/
public class WrapWithUnmodifiableAction extends BaseIntentionAction {
private static final String JAVA_UTIL_SORTED_MAP = "java.util.SortedMap";

View File

@@ -18,8 +18,6 @@ import static com.intellij.psi.PsiBinaryExpression.BOOLEAN_OPERATION_TOKENS;
* Expression complexity is >= 0. Complexity <= 10 means the expression is trivial (a constant or a variable). <br>
* Complexity >= 100 means that the expression is really big (many operators and/or method calls). <br>
* Side effects aren't checked here.
*
* @author Pavel.Dolgov
*/
class ComplexityCalculator {
private static final int IDENTIFIER = 10;

View File

@@ -17,9 +17,6 @@ import java.util.List;
import java.util.Map;
import java.util.function.BiConsumer;
/**
* @author Pavel.Dolgov
*/
final class DuplicateExpressionsContext {
private static final Key<Map<PsiCodeBlock, DuplicateExpressionsContext>> CONTEXTS_KEY = Key.create("DuplicateExpressionsContext");

View File

@@ -31,9 +31,6 @@ import java.util.*;
import static com.intellij.codeInspection.options.OptPane.number;
import static com.intellij.codeInspection.options.OptPane.pane;
/**
* @author Pavel.Dolgov
*/
public final class DuplicateExpressionsInspection extends LocalInspectionTool {
public int complexityThreshold = 70;

View File

@@ -9,9 +9,6 @@ import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author Pavel.Dolgov
*/
final class ExpressionHashingStrategy implements HashingStrategy<PsiExpression> {
private static final EquivalenceChecker EQUIVALENCE_CHECKER = new NoSideEffectExpressionEquivalenceChecker();

View File

@@ -7,9 +7,6 @@ import com.intellij.psi.util.PsiUtil;
import com.siyeh.ig.psiutils.EquivalenceChecker;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
class NoSideEffectExpressionEquivalenceChecker extends EquivalenceChecker {
@Override

View File

@@ -24,8 +24,6 @@ import static com.intellij.psi.CommonClassNames.*;
* {@code Comparable.compareTo()}, and {@code Comparator.compare()} are considered safe because of their contract.
* Immutable classes like {@code String}, {@code BigDecimal}, etc, and utility classes like
* {@code Objects}, {@code Math} (except {@code random()}) are OK too.
*
* @author Pavel.Dolgov
*/
final class SideEffectCalculator {
private final Object2IntMap<PsiExpression> myCache = new Object2IntOpenHashMap<>();

View File

@@ -24,9 +24,6 @@ import static com.intellij.psi.search.PsiSearchHelper.SearchCostResult.FEW_OCCUR
import static com.intellij.psi.util.PsiUtil.skipParenthesizedExprDown;
import static com.intellij.psi.util.PsiUtil.skipParenthesizedExprUp;
/**
* @author Pavel.Dolgov
*/
public class AtomicReferenceImplicitUsageProvider implements ImplicitUsageProvider {
private static final Set<String> ourUpdateMethods = ContainerUtil.set(
"compareAndSet", "weakCompareAndSet", "set", "lazySet", "getAndSet", "getAndIncrement", "getAndDecrement", "getAndAdd",

View File

@@ -22,9 +22,6 @@ import java.util.function.Predicate;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.*;
/**
* @author Pavel.Dolgov
*/
public class JavaLangInvokeHandleReference extends PsiReferenceBase<PsiLiteralExpression>
implements InsertHandler<LookupElement>, PsiMemberReference {

View File

@@ -26,9 +26,6 @@ import static com.intellij.codeInsight.completion.JavaCompletionContributor.isIn
import static com.intellij.patterns.PsiJavaPatterns.*;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.*;
/**
* @author Pavel.Dolgov
*/
public class JavaMethodHandleCompletionContributor extends CompletionContributor implements DumbAware {
// MethodHandle for constructors and methods

View File

@@ -38,9 +38,6 @@ import static com.intellij.codeInsight.completion.JavaCompletionContributor.isIn
import static com.intellij.patterns.PsiJavaPatterns.*;
import static com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferenceUtil.*;
/**
* @author Pavel.Dolgov
*/
public class JavaReflectionCompletionContributor extends CompletionContributor implements DumbAware {
private static final String CONSTRUCTOR = "getConstructor";
private static final String DECLARED_CONSTRUCTOR = "getDeclaredConstructor";

View File

@@ -7,9 +7,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Arrays;
/**
* @author Pavel.Dolgov
*/
final class InstructionKey implements Comparable<InstructionKey> {
private final int myOffset;
private final int[] myCallStack; // shared between instructions on the same stack level

View File

@@ -15,8 +15,6 @@ import java.util.Arrays;
* Logically equivalent instruction keys having different stacks (but equal sub-stacks) may appear
* when a 'finally' block is exited with THROW or COND_THROW instead of RETURN, so that the stack isn't unwound.
* In this case the top of the stack is no longer relevant and should be ignored, which is done by comparing sub-stacks.
*
* @author Pavel.Dolgov
*/
final class InstructionKeySet {
private final @NotNull Node myRoot;

View File

@@ -11,9 +11,6 @@ import com.intellij.psi.tree.IElementType;
import com.intellij.util.CharTable;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
public class PackageAccessibilityStatementElement extends CompositeElement {
public PackageAccessibilityStatementElement(@NotNull IElementType type) {
super(type);

View File

@@ -3,9 +3,6 @@ package com.intellij.codeInsight.daemon.impl.quickfix;
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
/**
* @author Pavel.Dolgov
*/
public class AddAnnotationAttributeNameTest extends LightQuickFixParameterizedTestCase {
@Override
protected String getBasePath() {

View File

@@ -3,9 +3,6 @@ package com.intellij.codeInsight.daemon.impl.quickfix;
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
/**
* @author Pavel.Dolgov
*/
public class ConvertCollectionToArrayFixTest extends LightQuickFixParameterizedTestCase {
@Override

View File

@@ -6,9 +6,6 @@ import com.intellij.codeInsight.intention.impl.CreateClassInPackageInModuleFix
import com.intellij.psi.PsiJavaFile
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
/**
* @author Pavel.Dolgov
*/
class CreateClassInPackageInModuleTest : LightJavaCodeInsightFixtureTestCase() {
fun testExportsMissingDir() = doTestMissingDir("exports")

View File

@@ -9,9 +9,6 @@ import com.intellij.psi.PsiDirectory
import com.intellij.psi.PsiJavaFile
import junit.framework.TestCase
/**
* @author Pavel.Dolgov
*/
class CreateServiceImplementationClassTest : LightJava9ModulesCodeInsightFixtureTestCase() {
fun testExistingPackageAllQualified() {

View File

@@ -9,9 +9,6 @@ import com.intellij.psi.PsiDirectory
import com.intellij.psi.PsiJavaFile
import com.intellij.psi.PsiManager
/**
* @author Pavel.Dolgov
*/
class CreateServiceInterfaceOrClassTest : LightJava9ModulesCodeInsightFixtureTestCase() {
fun testSameModuleExistingPackage() {

View File

@@ -3,9 +3,6 @@ package com.intellij.codeInsight.daemon.impl.quickfix
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase
/**
* @author Pavel.Dolgov
*/
class DeleteUnreachableTest : LightQuickFixParameterizedTestCase() {
override fun getBasePath() = "/codeInsight/daemonCodeAnalyzer/quickFix/deleteUnreachable"

View File

@@ -3,9 +3,6 @@ package com.intellij.codeInsight.daemon.impl.quickfix;
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
/**
* @author Pavel.Dolgov
*/
public class InsertMethodCallFixTest extends LightQuickFixParameterizedTestCase {
@Override

View File

@@ -6,9 +6,6 @@ import com.intellij.codeInspection.reflectiveAccess.JavaLangInvokeHandleSignatur
import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
/**
* @author Pavel.Dolgov
*/
class JavaLangInvokeFieldHandleSignatureFixTest : LightQuickFixParameterizedTestCase() {
override fun getProjectDescriptor(): LightProjectDescriptor = LightJavaCodeInsightFixtureTestCase.JAVA_9

View File

@@ -16,9 +16,6 @@ import com.intellij.psi.impl.source.resolve.reference.impl.JavaReflectionReferen
import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
/**
* @author Pavel.Dolgov
*/
class JavaLangInvokeMethodHandleSignatureFixTest : LightJavaCodeInsightFixtureTestCase() {
override fun getProjectDescriptor(): LightProjectDescriptor = JAVA_9

View File

@@ -6,9 +6,6 @@ import com.intellij.codeInspection.JoinDeclarationAndAssignmentJavaInspection;
import com.intellij.codeInspection.LocalInspectionTool;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
public class JoinDeclarationAndAssignmentTest extends LightQuickFixParameterizedTestCase {
@Override

View File

@@ -7,9 +7,6 @@ import com.intellij.codeInsight.daemon.quickFix.LightQuickFixTestCase
import com.intellij.java.testFramework.fixtures.LightJava9ModulesCodeInsightFixtureTestCase
import com.intellij.java.testFramework.fixtures.MultiModuleJava9ProjectDescriptor.ModuleDescriptor.*
/**
* @author Pavel.Dolgov
*/
class MergeModuleStatementsFixTest : LightJava9ModulesCodeInsightFixtureTestCase() {
override fun getBasePath() = getRelativeJavaTestDataPath() + "/codeInsight/daemonCodeAnalyzer/quickFix/mergeModuleStatementsFix"

View File

@@ -4,9 +4,6 @@ package com.intellij.codeInsight.daemon.impl.quickfix;
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
import com.intellij.psi.codeStyle.JavaCodeStyleSettings;
/**
* @author Pavel.Dolgov
*/
public class ReplaceIteratorForEachLoopWithIteratorForLoopFixTest extends LightQuickFixParameterizedTestCase {
@Override
protected void setUp() throws Exception {

View File

@@ -6,9 +6,6 @@ import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.intermediaryVariable.ReturnSeparatedFromComputationInspection;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
public class ReturnSeparatedFromComputationFix17Test extends LightQuickFixParameterizedTestCase {
@Override
protected LocalInspectionTool @NotNull [] configureLocalInspectionTools() {

View File

@@ -6,9 +6,6 @@ import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.intermediaryVariable.ReturnSeparatedFromComputationInspection;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
public class ReturnSeparatedFromComputationFix8Test extends LightQuickFixParameterizedTestCase {
@Override
protected LocalInspectionTool @NotNull [] configureLocalInspectionTools() {

View File

@@ -6,9 +6,6 @@ import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.intermediaryVariable.ReturnSeparatedFromComputationInspection;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
public class ReturnSeparatedFromComputationFixTest extends LightQuickFixParameterizedTestCase {
@Override
protected LocalInspectionTool @NotNull [] configureLocalInspectionTools() {

View File

@@ -22,9 +22,6 @@ import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.testFramework.NeedsIndex
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
/**
* @author Pavel Dolgov
*/
@NeedsIndex.Full
class JavaLangInvokeHandleCompletionTest : LightFixtureCompletionTestCase() {

View File

@@ -19,9 +19,6 @@ import com.intellij.JavaTestUtil
import com.intellij.codeInsight.completion.LightFixtureCompletionTestCase
import com.intellij.testFramework.NeedsIndex
/**
* @author Pavel.Dolgov
*/
@NeedsIndex.ForStandardLibrary
class JavaReflectionCompletionOverloadTest : LightFixtureCompletionTestCase() {

View File

@@ -28,9 +28,6 @@ import com.intellij.testFramework.NeedsIndex
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
import com.intellij.util.indexing.DumbModeAccessType
/**
* @author Pavel.Dolgov
*/
@NeedsIndex.Full
class JavaReflectionParametersCompletionTest : LightFixtureCompletionTestCase() {
override fun getBasePath(): String = JavaTestUtil.getRelativeJavaTestDataPath() + "/codeInsight/completion/reflectionParameters/"

View File

@@ -13,9 +13,6 @@ import com.intellij.ui.EditorNotificationPanel;
import static org.assertj.core.api.Assertions.assertThat;
/**
* @author Pavel.Dolgov
*/
@TestFor(classes = JavaProjectSdkSetupValidator.class)
public class SdkSetupNotificationTest extends SdkSetupNotificationTestBase {
public void testProjectSdk() {

View File

@@ -28,9 +28,6 @@ import org.jetbrains.annotations.Nullable;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
/**
* @author Pavel.Dolgov
*/
@TestFor(classes = SdkSetupNotificationProvider.class)
public abstract class SdkSetupNotificationTestBase extends JavaCodeInsightFixtureTestCase {

View File

@@ -5,9 +5,6 @@ import com.intellij.JavaTestUtil
import com.intellij.codeInspection.deadCode.UnusedDeclarationInspection
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
/**
* @author Pavel.Dolgov
*/
class AtomicReferenceImplicitUsageTest : LightJavaCodeInsightFixtureTestCase() {
override fun getProjectDescriptor() = JAVA_8
override fun getBasePath() = JavaTestUtil.getRelativeJavaTestDataPath() + "/codeInsight/atomicReferenceImplicitUsage/"

View File

@@ -17,9 +17,6 @@ package com.intellij.java.codeInsight.intention;
import com.intellij.codeInsight.daemon.LightIntentionActionTestCase;
/**
* @author Pavel.Dolgov
*/
public class UnwrapElseBranchTest extends LightIntentionActionTestCase {
@Override

View File

@@ -7,9 +7,6 @@ import org.jetbrains.annotations.NotNull;
import static com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase.JAVA_11_ANNOTATED;
/**
* @author Pavel.Dolgov
*/
public class WrapWithUnmodifiableTest extends LightIntentionActionTestCase {
@NotNull
@Override

View File

@@ -10,9 +10,6 @@ import org.intellij.lang.annotations.Language
import org.intellij.lang.annotations.MagicConstant
import org.jetbrains.annotations.NonNls
/**
* @author Pavel.Dolgov
*/
class JavaLangInvokeHandleNavigationTest : LightJavaCodeInsightFixtureTestCase() {
fun testVirtual1() = doTest("m1", VIRTUAL)

View File

@@ -19,9 +19,6 @@ import com.intellij.psi.PsiClass
import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
/**
* @author Pavel.Dolgov
*/
class JavaReflectionClassNavigationTest : JavaReflectionClassNavigationTestBase() {
fun testPublicClass() {

View File

@@ -8,9 +8,6 @@ import org.intellij.lang.annotations.MagicConstant;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
/**
* @author Pavel.Dolgov
*/
public class JavaReflectionNavigationTest extends LightJavaCodeInsightFixtureTestCase {
private static final String FIELD = "Field";

View File

@@ -6,9 +6,6 @@ import com.intellij.codeInspection.DuplicateBranchesInSwitchInspection
import com.intellij.codeInspection.LocalInspectionTool
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
/**
* @author Pavel.Dolgov
*/
class DuplicateBranchesInEnhancedSwitchFixTest : LightQuickFixParameterizedTestCase() {
override fun configureLocalInspectionTools(): Array<LocalInspectionTool> = arrayOf(DuplicateBranchesInSwitchInspection())

View File

@@ -8,9 +8,6 @@ import com.intellij.testFramework.IdeaTestUtil
import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
/**
* @author Pavel.Dolgov
*/
class DuplicateBranchesInEnhancedSwitchTest : LightJavaCodeInsightFixtureTestCase() {
override fun getBasePath() = JavaTestUtil.getRelativeJavaTestDataPath() + "/inspection/duplicateBranchesInEnhancedSwitch"

View File

@@ -6,9 +6,6 @@ import com.intellij.codeInspection.DuplicateBranchesInSwitchInspection
import com.intellij.codeInspection.LocalInspectionTool
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase.JAVA_20
/**
* @author Pavel.Dolgov
*/
class DuplicateBranchesInSwitchFixTest : LightQuickFixParameterizedTestCase() {
override fun configureLocalInspectionTools(): Array<LocalInspectionTool> = arrayOf(DuplicateBranchesInSwitchInspection())

View File

@@ -6,7 +6,6 @@ import org.junit.runners.Suite;
/**
* Tests for {@link com.intellij.codeInspection.DuplicateBranchesInSwitchInspection}
* @author Pavel.Dolgov
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({

Some files were not shown because too many files have changed in this diff Show More