mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
cleanup: remove redundant '@author' tags from javadoc comments - 5
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: e1f798814ca7f22747768b99cbcd962d820bbfb9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0a451b153a
commit
98b622aa27
-3
@@ -9,9 +9,6 @@ import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class NotNullVerifyingInstrumenter extends ClassVisitor implements Opcodes {
|
||||
private static final String IAE_CLASS_NAME = "java/lang/IllegalArgumentException";
|
||||
private static final String ISE_CLASS_NAME = "java/lang/IllegalStateException";
|
||||
|
||||
@@ -23,9 +23,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public abstract class LanguageLevelCombo extends ComboBox<Object> {
|
||||
private final static LanguageLevel[] LTS = {LanguageLevel.JDK_17, LanguageLevel.JDK_11, LanguageLevel.JDK_1_8};
|
||||
|
||||
|
||||
-3
@@ -37,9 +37,6 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class SuppressFix extends AbstractBatchSuppressByNoInspectionCommentFix {
|
||||
private String myAlternativeID;
|
||||
|
||||
|
||||
-3
@@ -28,9 +28,6 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class SuppressParameterFix extends AbstractBatchSuppressByNoInspectionCommentFix {
|
||||
private String myAlternativeID;
|
||||
|
||||
|
||||
-3
@@ -40,9 +40,6 @@ import java.util.*;
|
||||
|
||||
import static com.intellij.patterns.PsiJavaPatterns.psiElement;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class AnnotationsHighlightUtil {
|
||||
private static final Logger LOG = Logger.getInstance(AnnotationsHighlightUtil.class);
|
||||
|
||||
|
||||
-3
@@ -17,9 +17,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public abstract class ArgumentFixerActionFactory {
|
||||
private static final Logger LOG = Logger.getInstance(ArgumentFixerActionFactory.class);
|
||||
|
||||
|
||||
-3
@@ -13,9 +13,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public enum CreateClassKind implements ClassKind {
|
||||
CLASS(JavaElementKind.CLASS),
|
||||
INTERFACE(JavaElementKind.INTERFACE),
|
||||
|
||||
-3
@@ -13,9 +13,6 @@ import com.intellij.psi.util.PsiTypesUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public abstract class MethodArgumentFix implements IntentionAction {
|
||||
private static final Logger LOG = Logger.getInstance(MethodArgumentFix.class);
|
||||
|
||||
|
||||
-3
@@ -24,9 +24,6 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class WrapExpressionFix implements IntentionAction {
|
||||
private static final Logger LOG = Logger.getInstance(WrapExpressionFix.class);
|
||||
|
||||
|
||||
@@ -27,9 +27,6 @@ import com.intellij.psi.PsiNameValuePair;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class AddAnnotationFix extends AddAnnotationPsiFix implements IntentionAction {
|
||||
public AddAnnotationFix(@NotNull String fqn, @NotNull PsiModifierListOwner modifierListOwner, String @NotNull ... annotationsToRemove) {
|
||||
this(fqn, modifierListOwner, PsiNameValuePair.EMPTY_ARRAY, annotationsToRemove);
|
||||
|
||||
-3
@@ -11,9 +11,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public abstract class GenericsInspectionToolBase extends AbstractBaseJavaLocalInspectionTool implements CleanupLocalInspectionTool {
|
||||
@Override
|
||||
public boolean isEnabledByDefault() {
|
||||
|
||||
-3
@@ -17,9 +17,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class RedundantTypeArgsInspection extends GenericsInspectionToolBase {
|
||||
private static final Logger LOG = Logger.getInstance(RedundantTypeArgsInspection.class);
|
||||
|
||||
|
||||
-3
@@ -23,9 +23,6 @@ import java.util.List;
|
||||
|
||||
import static com.intellij.codeInspection.options.OptPane.*;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class SuspiciousCollectionsMethodCallsInspection extends AbstractBaseJavaLocalInspectionTool {
|
||||
public boolean REPORT_CONVERTIBLE_METHOD_CALLS = true;
|
||||
|
||||
|
||||
-3
@@ -15,9 +15,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class ExtractMethodUtil {
|
||||
private static final Logger LOG = Logger.getInstance(ExtractMethodUtil.class);
|
||||
private static final Key<PsiMethod> RESOLVE_TARGET_KEY = Key.create("RESOLVE_TARGET_KEY");
|
||||
|
||||
-3
@@ -24,9 +24,6 @@ import com.siyeh.ig.psiutils.ExpressionUtils;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ConditionalReturnStatementValue implements ReturnValue {
|
||||
PsiExpression myReturnValue;
|
||||
|
||||
|
||||
-3
@@ -15,9 +15,6 @@ import java.util.Objects;
|
||||
|
||||
import static com.siyeh.ig.callMatcher.CallMatcher.exactInstanceCall;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class RedundantArrayForVarargsCallInspection extends AbstractBaseJavaLocalInspectionTool implements CleanupLocalInspectionTool {
|
||||
@Override
|
||||
public @NotNull PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, final boolean isOnTheFly) {
|
||||
|
||||
-3
@@ -33,9 +33,6 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class JavaRefactoringSupportProvider extends JavaBaseRefactoringSupportProvider {
|
||||
@Override
|
||||
public boolean isSafeDeleteAvailable(@NotNull PsiElement element) {
|
||||
|
||||
-3
@@ -18,9 +18,6 @@ package com.intellij.refactoring.changeSignature;
|
||||
import com.intellij.psi.PsiMethod;
|
||||
import com.intellij.usageView.UsageInfo;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CallerUsageInfo extends UsageInfo {
|
||||
private final boolean myToInsertParameter;
|
||||
private final boolean myToInsertException;
|
||||
|
||||
-3
@@ -19,9 +19,6 @@ import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.usageView.UsageInfo;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MethodCallUsageInfo extends UsageInfo {
|
||||
private static final Logger LOG = Logger.getInstance(MethodCallUsageInfo.class);
|
||||
private final boolean myToChangeArguments;
|
||||
|
||||
-3
@@ -15,9 +15,6 @@ import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.MouseEvent;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ConvertToInstanceMethodDialog extends MoveInstanceMethodDialogBase {
|
||||
private static final Logger LOG = Logger.getInstance(ConvertToInstanceMethodDialog.class);
|
||||
|
||||
|
||||
-3
@@ -44,9 +44,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class InlineConstantFieldHandler extends JavaInlineActionHandler {
|
||||
|
||||
@Override
|
||||
|
||||
-3
@@ -33,9 +33,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class InlineConstantFieldProcessor extends BaseRefactoringProcessor {
|
||||
private static final Logger LOG = Logger.getInstance(InlineConstantFieldProcessor.class);
|
||||
private PsiField myField;
|
||||
|
||||
-3
@@ -20,9 +20,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ReferencedElementsCollector extends JavaRecursiveElementVisitor {
|
||||
final HashSet<PsiMember> myReferencedMembers = new HashSet<>();
|
||||
|
||||
|
||||
-3
@@ -29,9 +29,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MakeClassStaticProcessor extends MakeMethodOrClassStaticProcessor<PsiClass> {
|
||||
private static final Logger LOG = Logger.getInstance(MakeClassStaticProcessor.class);
|
||||
private final List<PsiField> myFieldsToSplit = new ArrayList<>();
|
||||
|
||||
-3
@@ -28,9 +28,6 @@ import org.jetbrains.uast.generate.UastCodeGenerationPluginKt;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MigrationProcessor extends BaseRefactoringProcessor {
|
||||
private final MigrationMap myMigrationMap;
|
||||
private PsiMigration myPsiMigration;
|
||||
|
||||
-3
@@ -15,9 +15,6 @@ import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class MoveInstanceMembersUtil {
|
||||
private static final Logger LOG = Logger.getInstance(MoveInstanceMembersUtil.class);
|
||||
|
||||
|
||||
-3
@@ -42,9 +42,6 @@ import java.awt.event.ActionListener;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MoveClassesOrPackagesToNewDirectoryDialog extends MoveDialogBase {
|
||||
private static final Logger LOG = Logger.getInstance(MoveClassesOrPackagesToNewDirectoryDialog.class);
|
||||
|
||||
|
||||
-3
@@ -18,9 +18,6 @@ package com.intellij.refactoring.move.moveInstanceMethod;
|
||||
import com.intellij.usageView.UsageInfo;
|
||||
import com.intellij.psi.PsiClass;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class InheritorUsageInfo extends UsageInfo {
|
||||
private final PsiClass myInheritor;
|
||||
|
||||
|
||||
-3
@@ -22,9 +22,6 @@ import com.intellij.psi.PsiExpression;
|
||||
import com.intellij.psi.PsiNewExpression;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class InternalUsageInfo extends UsageInfo {
|
||||
private static final Logger LOG = Logger.getInstance(InternalUsageInfo.class);
|
||||
public InternalUsageInfo(final PsiElement referenceElement) {
|
||||
|
||||
-3
@@ -18,9 +18,6 @@ package com.intellij.refactoring.move.moveInstanceMethod;
|
||||
import com.intellij.usageView.UsageInfo;
|
||||
import com.intellij.psi.javadoc.PsiDocTagValue;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class JavadocUsageInfo extends UsageInfo {
|
||||
private final PsiDocTagValue myDocTagValue;
|
||||
|
||||
|
||||
-3
@@ -20,9 +20,6 @@ import com.intellij.psi.PsiMethodReferenceExpression;
|
||||
import com.intellij.psi.PsiReferenceExpression;
|
||||
import com.intellij.usageView.UsageInfo;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MethodCallUsageInfo extends UsageInfo {
|
||||
private final PsiElement myMethodCallExpression;
|
||||
private final boolean myIsInternal;
|
||||
|
||||
-3
@@ -27,9 +27,6 @@ import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MoveInstanceMethodDialog extends MoveInstanceMethodDialogBase {
|
||||
private static final String KEY = "#com.intellij.refactoring.move.moveInstanceMethod.MoveInstanceMethodDialog";
|
||||
|
||||
|
||||
-3
@@ -45,9 +45,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MoveInstanceMethodHandler implements RefactoringActionHandler {
|
||||
private static final Logger LOG = Logger.getInstance(MoveInstanceMethodHandler.class);
|
||||
|
||||
|
||||
-3
@@ -35,9 +35,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MoveInstanceMethodProcessor extends BaseRefactoringProcessor{
|
||||
private static final Logger LOG = Logger.getInstance(MoveInstanceMethodProcessor.class);
|
||||
|
||||
|
||||
-3
@@ -27,9 +27,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MakeClassStaticRefactoringImpl extends RefactoringImpl<MakeClassStaticProcessor>
|
||||
implements MakeStaticRefactoring<PsiClass> {
|
||||
MakeClassStaticRefactoringImpl(Project project,
|
||||
|
||||
-3
@@ -24,9 +24,6 @@ import com.intellij.refactoring.RefactoringImpl;
|
||||
import com.intellij.refactoring.move.moveInstanceMethod.MoveInstanceMethodHandler;
|
||||
import com.intellij.refactoring.move.moveInstanceMethod.MoveInstanceMethodProcessor;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MoveInstanceMethodRefactoringImpl extends RefactoringImpl<MoveInstanceMethodProcessor> implements MoveInstanceMethodRefactoring {
|
||||
MoveInstanceMethodRefactoringImpl(Project project, PsiMethod method, PsiVariable targetVariable) {
|
||||
super(new MoveInstanceMethodProcessor(project, method, targetVariable, null, MoveInstanceMethodHandler.suggestParameterNames (method, targetVariable)));
|
||||
|
||||
-3
@@ -26,9 +26,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
class JavaResolveSnapshot extends ResolveSnapshotProvider.ResolveSnapshot {
|
||||
private static final Logger LOG = Logger.getInstance(JavaResolveSnapshot.class);
|
||||
|
||||
|
||||
-3
@@ -26,9 +26,6 @@ import org.jetbrains.annotations.NonNls;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ConstructorParameterOnFieldRenameRenamer extends AutomaticRenamer {
|
||||
@Override
|
||||
@NonNls
|
||||
|
||||
-3
@@ -16,9 +16,6 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class SafeDeleteExtendsClassUsageInfo extends SafeDeleteReferenceUsageInfo {
|
||||
private static final Logger LOG = Logger.getInstance(SafeDeleteExtendsClassUsageInfo.class);
|
||||
private final PsiClass myExtendingClass;
|
||||
|
||||
@@ -37,9 +37,6 @@ import java.util.*;
|
||||
|
||||
import static com.intellij.util.ObjectUtils.tryCast;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class InlineUtil implements CommonJavaInlineUtil {
|
||||
private static final Logger LOG = Logger.getInstance(InlineUtil.class);
|
||||
|
||||
|
||||
@@ -20,9 +20,6 @@ import com.intellij.psi.PsiType;
|
||||
import org.intellij.lang.annotations.MagicConstant;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public interface ExpectedTypeInfo {
|
||||
/**
|
||||
* Exactly the same type is expected
|
||||
|
||||
@@ -41,9 +41,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.*;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class ExpectedTypesProvider {
|
||||
private static final ExpectedTypeInfo VOID_EXPECTED = createInfoImpl(PsiType.VOID, ExpectedTypeInfo.TYPE_OR_SUBTYPE, PsiType.VOID, TailType.SEMICOLON);
|
||||
|
||||
|
||||
-3
@@ -20,9 +20,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.HashMap;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class BringVariableIntoScopeFix implements IntentionAction, HighPriorityAction {
|
||||
private static final Logger LOG = Logger.getInstance(BringVariableIntoScopeFix.class);
|
||||
private final @NotNull PsiReferenceExpression myUnresolvedReference;
|
||||
|
||||
-3
@@ -19,9 +19,6 @@ import com.intellij.psi.util.PsiUtilCore;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public abstract class CreateClassFromUsageBaseFix extends BaseIntentionAction {
|
||||
protected static final Logger LOG = Logger.getInstance(CreateClassFromUsageBaseFix.class);
|
||||
protected CreateClassKind myKind;
|
||||
|
||||
-3
@@ -28,9 +28,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateConstructorMatchingSuperFix extends BaseIntentionAction {
|
||||
private static final Logger LOG = Logger.getInstance(CreateConstructorMatchingSuperFix.class);
|
||||
|
||||
|
||||
-3
@@ -36,9 +36,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateGetterOrSetterFix implements IntentionAction, LowPriorityAction {
|
||||
private final boolean myCreateGetter;
|
||||
private final boolean myCreateSetter;
|
||||
|
||||
-3
@@ -27,9 +27,6 @@ import javax.swing.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateInnerClassFromUsageFix extends CreateClassFromUsageBaseFix {
|
||||
|
||||
public CreateInnerClassFromUsageFix(final PsiJavaCodeReferenceElement refElement, final CreateClassKind kind) {
|
||||
|
||||
-3
@@ -29,9 +29,6 @@ import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class DeleteMethodBodyFix implements IntentionActionWithFixAllOption {
|
||||
private final PsiMethod myMethod;
|
||||
|
||||
|
||||
-3
@@ -23,9 +23,6 @@ import java.util.Map;
|
||||
import static com.intellij.codeInsight.ExpectedTypeInfo.*;
|
||||
import static com.intellij.util.containers.ContainerUtil.map;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class GuessTypeParameters {
|
||||
|
||||
private static final Logger LOG = Logger.getInstance(GuessTypeParameters.class);
|
||||
|
||||
-3
@@ -30,9 +30,6 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class MakeVarargParameterLastFix implements IntentionActionWithFixAllOption {
|
||||
private final @NotNull PsiParameter myParameter;
|
||||
|
||||
|
||||
-3
@@ -15,9 +15,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class JavaExpressionSurroundDescriptor implements SurroundDescriptor {
|
||||
|
||||
private static final Surrounder[] SURROUNDERS = {
|
||||
|
||||
-3
@@ -22,9 +22,6 @@ import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class JavaStatementsSurroundDescriptor implements SurroundDescriptor {
|
||||
private static final Surrounder[] SURROUNDERS = {
|
||||
new JavaWithIfSurrounder(),
|
||||
|
||||
@@ -30,9 +30,6 @@ import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.MouseEvent;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class SimpleFieldChooser extends DialogWrapper {
|
||||
private final PsiField[] myFields;
|
||||
private JList myList;
|
||||
|
||||
-3
@@ -27,9 +27,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class AddOnDemandStaticImportAction extends BaseElementAtCaretIntentionAction {
|
||||
private static final Logger LOG = Logger.getInstance(AddOnDemandStaticImportAction.class);
|
||||
|
||||
|
||||
-3
@@ -1,8 +1,5 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
|
||||
/*
|
||||
* @author ven
|
||||
*/
|
||||
package com.intellij.codeInsight.intention.impl;
|
||||
|
||||
import com.intellij.codeInsight.intention.BaseElementAtCaretIntentionAction;
|
||||
|
||||
-3
@@ -25,9 +25,6 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ConcatenationToMessageFormatAction implements IntentionAction {
|
||||
@Override
|
||||
@NotNull
|
||||
|
||||
-3
@@ -14,9 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author ven
|
||||
*/
|
||||
package com.intellij.codeInsight.template.macro;
|
||||
|
||||
import com.intellij.codeInsight.template.*;
|
||||
|
||||
-3
@@ -24,9 +24,6 @@ import com.intellij.psi.PsiExpression;
|
||||
import com.intellij.psi.PsiType;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class IterableComponentTypeMacro extends Macro {
|
||||
@Override
|
||||
public String getName() {
|
||||
|
||||
@@ -29,9 +29,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class IterableVariableMacro extends VariableTypeMacroBase {
|
||||
private static final Logger LOG = Logger.getInstance(IterableVariableMacro.class);
|
||||
|
||||
|
||||
@@ -23,9 +23,6 @@ import com.intellij.util.CommonJavaRefactoringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class RightSideTypeMacro extends Macro {
|
||||
@Override
|
||||
public String getName() {
|
||||
|
||||
@@ -25,9 +25,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public abstract class VariableTypeMacroBase extends Macro {
|
||||
protected abstract PsiElement @Nullable [] getVariables(Expression[] params, final ExpressionContext context);
|
||||
|
||||
|
||||
@@ -24,9 +24,6 @@ import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class AddAssertStatementFix implements LocalQuickFix {
|
||||
private final String myText;
|
||||
|
||||
|
||||
@@ -12,9 +12,6 @@ import com.siyeh.ig.psiutils.ParenthesesUtils;
|
||||
import com.siyeh.ipp.trivialif.MergeIfAndIntention;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class SurroundWithIfFix implements LocalQuickFix {
|
||||
private static final Logger LOG = Logger.getInstance(SurroundWithIfFix.class);
|
||||
private final String myText;
|
||||
|
||||
@@ -21,9 +21,6 @@ import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class JavaFindUsagesProvider implements FindUsagesProvider {
|
||||
@Override
|
||||
public boolean canFindUsagesFor(@NotNull PsiElement element) {
|
||||
|
||||
-3
@@ -25,9 +25,6 @@ import com.intellij.psi.search.UsageSearchContext;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import com.intellij.psi.tree.TokenSet;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class JavaFilterLexer extends BaseFilterLexer {
|
||||
private static final TokenSet ourSkipWordsScanSet = TokenSet.orSet(
|
||||
TokenSet.create(
|
||||
|
||||
-3
@@ -26,9 +26,6 @@ import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class PsiJavaCodeReferenceCodeFragmentImpl extends PsiCodeFragmentImpl implements PsiJavaCodeReferenceCodeFragment {
|
||||
private static final Logger LOG = Logger.getInstance(PsiJavaCodeReferenceCodeFragmentImpl.class);
|
||||
private final boolean myIsClassesAccepted;
|
||||
|
||||
@@ -26,9 +26,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ExceptionsTableModel extends AbstractTableModel implements EditableModel {
|
||||
private List<PsiTypeCodeFragment> myTypeCodeFragments;
|
||||
private final PsiElement myContext;
|
||||
|
||||
@@ -20,9 +20,6 @@ import com.intellij.psi.PsiMethod;
|
||||
import com.intellij.usageView.UsageInfo;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class OverriderUsageInfo extends UsageInfo implements OverriderMethodUsageInfo<PsiMethod> {
|
||||
private final PsiMethod myBaseMethod;
|
||||
private final boolean myToInsertArgs;
|
||||
|
||||
@@ -12,9 +12,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ReferenceEditorComboWithBrowseButton extends ComponentWithBrowseButton<EditorComboBox> implements TextAccessor {
|
||||
public ReferenceEditorComboWithBrowseButton(final ActionListener browseActionListener,
|
||||
final String text,
|
||||
|
||||
-1
@@ -16,7 +16,6 @@ import com.intellij.util.QueryExecutor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
* Searches deeply for all overriding methods of all methods in a class, processing pairs
|
||||
* (method in original class, overriding method)
|
||||
*/
|
||||
|
||||
-3
@@ -19,9 +19,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class JavaAllOverridingMethodsSearcher implements QueryExecutor<Pair<PsiMethod, PsiMethod>, AllOverridingMethodsSearch.SearchParameters> {
|
||||
@Override
|
||||
public boolean execute(@NotNull final AllOverridingMethodsSearch.SearchParameters p, @NotNull final Processor<? super Pair<PsiMethod, PsiMethod>> consumer) {
|
||||
|
||||
-3
@@ -12,9 +12,6 @@ import com.intellij.psi.util.PropertyUtilBase;
|
||||
import com.intellij.util.Processor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class SimpleAccessorReferenceSearcher extends QueryExecutorBase<PsiReference, ReferencesSearch.SearchParameters> {
|
||||
public SimpleAccessorReferenceSearcher() {
|
||||
super(true);
|
||||
|
||||
@@ -15,9 +15,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class GenericsUtil {
|
||||
|
||||
private static final Logger LOG = Logger.getInstance(GenericsUtil.class);
|
||||
|
||||
@@ -23,8 +23,6 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Data structure which allows efficient retrieval of super methods for a Java method.
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public abstract class HierarchicalMethodSignature extends MethodSignatureBackedByPsiMethod {
|
||||
public HierarchicalMethodSignature(@NotNull MethodSignatureBackedByPsiMethod signature) {
|
||||
|
||||
@@ -14,8 +14,6 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents a Java annotation.
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public interface PsiAnnotation extends PsiAnnotationMemberValue, JvmAnnotation {
|
||||
/**
|
||||
|
||||
@@ -19,8 +19,6 @@ import com.intellij.util.ArrayFactory;
|
||||
|
||||
/**
|
||||
* Represents a PSI element which can be used as the value of an annotation element.
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public interface PsiAnnotationMemberValue extends PsiElement {
|
||||
/**
|
||||
|
||||
@@ -20,8 +20,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
/**
|
||||
* Represents a method which is declared on an annotation interface and
|
||||
* possibly specifies the default value of the annotation element.
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public interface PsiAnnotationMethod extends PsiMethod {
|
||||
/**
|
||||
|
||||
@@ -20,7 +20,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* Represents the list of name/value elements for an annotation.
|
||||
*
|
||||
* @author ven
|
||||
* @see PsiAnnotation
|
||||
*/
|
||||
public interface PsiAnnotationParameterList extends PsiElement {
|
||||
|
||||
@@ -20,8 +20,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* Represents an array used as a value of an annotation element. For example:
|
||||
* {@code @Endorsers({"Children", "Unscrupulous dentists"})}
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public interface PsiArrayInitializerMemberValue extends PsiAnnotationMemberValue {
|
||||
/**
|
||||
|
||||
@@ -20,8 +20,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents the call of a Java method or constructor or a Java enum constant..
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public interface PsiCall extends PsiElement {
|
||||
/**
|
||||
|
||||
@@ -9,9 +9,6 @@ import com.intellij.psi.util.PsiUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class PsiCapturedWildcardType extends PsiType.Stub {
|
||||
@NotNull private final PsiWildcardType myExistential;
|
||||
@NotNull private final PsiElement myContext;
|
||||
|
||||
@@ -9,8 +9,6 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents a single {@code catch} section of a Java {@code try ... catch} statement.
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public interface PsiCatchSection extends PsiElement {
|
||||
/**
|
||||
|
||||
@@ -20,9 +20,6 @@ import com.intellij.openapi.util.NlsSafe;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public interface PsiClassOwner extends PsiFile {
|
||||
/**
|
||||
* @return classes owned by this element.
|
||||
|
||||
@@ -25,7 +25,6 @@ import java.util.concurrent.ConcurrentMap;
|
||||
/**
|
||||
* Service for evaluating values of constant expressions.
|
||||
*
|
||||
* @author ven
|
||||
* @see JavaPsiFacade#getConstantEvaluationHelper()
|
||||
*/
|
||||
public abstract class PsiConstantEvaluationHelper {
|
||||
|
||||
@@ -19,8 +19,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents a Java constructor call or enum constant.
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public interface PsiConstructorCall extends PsiCall {
|
||||
/**
|
||||
|
||||
@@ -6,8 +6,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Represents the type of a variable arguments array passed as a method parameter.
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public class PsiEllipsisType extends PsiArrayType {
|
||||
public PsiEllipsisType(@NotNull PsiType componentType) {
|
||||
|
||||
@@ -15,8 +15,6 @@ import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* Intersection types arise in a process of computing least upper bound.
|
||||
*
|
||||
* @author ven
|
||||
*/
|
||||
public final class PsiIntersectionType extends PsiType.Stub {
|
||||
private final PsiType[] myConjuncts;
|
||||
|
||||
@@ -19,7 +19,6 @@ package com.intellij.psi;
|
||||
* Represents a fragment of Java code the contents of which is a reference element
|
||||
* referencing a Java class or package.
|
||||
*
|
||||
* @author ven
|
||||
* @see JavaCodeFragmentFactory#createReferenceCodeFragment(String, PsiElement, boolean, boolean)
|
||||
*/
|
||||
public interface PsiJavaCodeReferenceCodeFragment extends JavaCodeFragment {
|
||||
|
||||
@@ -14,7 +14,6 @@ import static com.intellij.psi.PsiJvmConversionHelper.getAnnotationAttributeValu
|
||||
/**
|
||||
* Represents a single element-value pair of an annotation parameter list.
|
||||
*
|
||||
* @author ven
|
||||
* @see PsiAnnotation
|
||||
* @see PsiAnnotationParameterList
|
||||
*/
|
||||
|
||||
@@ -17,9 +17,6 @@ package com.intellij.psi.util;
|
||||
|
||||
import com.intellij.psi.PsiElement;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ConstantEvaluationOverflowException extends RuntimeException {
|
||||
private final PsiElement myOverflowingExpression;
|
||||
|
||||
|
||||
@@ -17,9 +17,6 @@ package com.intellij.psi;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class PsiTypeVisitorEx<A> extends PsiTypeVisitor<A> {
|
||||
public A visitTypeVariable(@NotNull PsiTypeVariable var) {
|
||||
return visitType(var);
|
||||
|
||||
@@ -8,9 +8,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class PsiConstantEvaluationHelperImpl extends PsiConstantEvaluationHelper {
|
||||
|
||||
@Override
|
||||
|
||||
-3
@@ -21,9 +21,6 @@ import com.intellij.psi.impl.source.SourceTreeToPsiMap;
|
||||
import com.intellij.psi.impl.source.tree.TreeElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ClsAnnotationParameterListImpl extends ClsElementImpl implements PsiAnnotationParameterList {
|
||||
private final PsiAnnotation myParent;
|
||||
private final ClsNameValuePairImpl[] myAttributes;
|
||||
|
||||
@@ -24,9 +24,6 @@ import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
abstract class ClsAnnotationValueImpl extends ClsElementImpl implements PsiAnnotation, Navigatable {
|
||||
private final ClsElementImpl myParent;
|
||||
private final ClsJavaCodeReferenceElementImpl myReferenceElement;
|
||||
|
||||
-3
@@ -20,9 +20,6 @@ import com.intellij.psi.impl.source.SourceTreeToPsiMap;
|
||||
import com.intellij.psi.impl.source.tree.TreeElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ClsArrayInitializerMemberValueImpl extends ClsElementImpl implements PsiArrayInitializerMemberValue {
|
||||
private final ClsElementImpl myParent;
|
||||
private final PsiAnnotationMemberValue[] myInitializers;
|
||||
|
||||
@@ -10,9 +10,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class ClsEnumConstantImpl extends ClsFieldImpl implements PsiEnumConstant {
|
||||
public ClsEnumConstantImpl(@NotNull PsiFieldStub stub) {
|
||||
super(stub);
|
||||
|
||||
@@ -17,8 +17,5 @@ package com.intellij.psi.impl.compiled;
|
||||
|
||||
import com.intellij.psi.PsiModifierListOwner;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public interface ClsModifierListOwner extends PsiModifierListOwner {
|
||||
}
|
||||
|
||||
@@ -21,9 +21,6 @@ import com.intellij.psi.impl.source.tree.TreeElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
class ClsNameValuePairImpl extends ClsElementImpl implements PsiNameValuePair {
|
||||
private final ClsElementImpl myParent;
|
||||
private final ClsIdentifierImpl myNameIdentifier;
|
||||
|
||||
@@ -19,9 +19,6 @@ import com.intellij.util.lang.JavaVersion;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public final class ClsParsingUtil {
|
||||
private static final Logger LOG = Logger.getInstance(ClsParsingUtil.class);
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.PsiManager;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class JavaIdentifier extends LightIdentifier {
|
||||
private final PsiElement myElement;
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user