mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
hereby I renounce and abdicate the vain javadoc for the greater good of the humanity
GitOrigin-RevId: cc5ab0c7b94450d6b8585a0337214a8907f0ed21
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e3c8226e38
commit
18e95e0bda
-3
@@ -17,9 +17,6 @@ import org.jetbrains.jps.model.java.compiler.EclipseCompilerOptions;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class EclipseCompilerConfigurable implements Configurable {
|
||||
private final Project myProject;
|
||||
private JPanel myPanel;
|
||||
|
||||
@@ -8,16 +8,12 @@ import com.intellij.openapi.application.ApplicationNamesInfo;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.util.SystemProperties;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ProjectWizardUtil {
|
||||
private ProjectWizardUtil() { }
|
||||
|
||||
|
||||
@@ -22,9 +22,6 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class QuickFixFactory {
|
||||
public static QuickFixFactory getInstance() {
|
||||
return ServiceManager.getService(QuickFixFactory.class);
|
||||
|
||||
-3
@@ -38,9 +38,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class GenericsHighlightUtil {
|
||||
private static final Logger LOG = Logger.getInstance(GenericsHighlightUtil.class);
|
||||
|
||||
|
||||
-3
@@ -36,9 +36,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class HighlightControlFlowUtil {
|
||||
private static final QuickFixFactory QUICK_FIX_FACTORY = QuickFixFactory.getInstance();
|
||||
|
||||
|
||||
-3
@@ -20,9 +20,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ChangeTypeArgumentsFix implements IntentionAction, HighPriorityAction {
|
||||
private static final Logger LOG = Logger.getInstance(ChangeTypeArgumentsFix.class);
|
||||
|
||||
|
||||
-3
@@ -36,9 +36,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class PermuteArgumentsFix implements IntentionAction, HighPriorityAction {
|
||||
private static final Logger LOG = Logger.getInstance(PermuteArgumentsFix.class);
|
||||
private final PsiCall myCall;
|
||||
|
||||
@@ -27,9 +27,6 @@ import java.util.function.Consumer;
|
||||
import static com.intellij.codeInsight.AnnotationUtil.CHECK_EXTERNAL;
|
||||
import static com.intellij.codeInsight.AnnotationUtil.CHECK_TYPE;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class AnnotateMethodFix implements LocalQuickFix {
|
||||
private static final Logger LOG = Logger.getInstance(AnnotateMethodFix.class);
|
||||
|
||||
|
||||
-3
@@ -10,9 +10,6 @@ import com.intellij.psi.search.searches.ReferencesSearch;
|
||||
import com.intellij.psi.util.PsiUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class DeprecatedIsStillUsedInspection extends LocalInspectionTool {
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
@@ -17,9 +17,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class NumericOverflowInspection extends AbstractBaseJavaLocalInspectionTool {
|
||||
private static final Key<String> HAS_OVERFLOW_IN_CHILD = Key.create("HAS_OVERFLOW_IN_CHILD");
|
||||
|
||||
|
||||
-3
@@ -34,9 +34,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class AnnotateOverriddenMethodParameterFix implements LocalQuickFix {
|
||||
private final String myAnnotation;
|
||||
private final String[] myAnnosToRemove;
|
||||
|
||||
-3
@@ -25,9 +25,6 @@ import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class IncreaseLanguageLevelFix implements IntentionAction, LocalQuickFix, HighPriorityAction {
|
||||
private final LanguageLevel myLevel;
|
||||
|
||||
|
||||
-3
@@ -46,9 +46,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ChangeMethodSignatureFromUsageFix implements IntentionAction/*, HighPriorityAction*/ {
|
||||
final PsiMethod myTargetMethod;
|
||||
final PsiExpression[] myExpressions;
|
||||
|
||||
-3
@@ -25,9 +25,6 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class CreateCastExpressionFromInstanceofAction extends CreateLocalVarFromInstanceofAction {
|
||||
@Override
|
||||
public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {
|
||||
|
||||
-3
@@ -36,9 +36,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class CreateLocalVarFromInstanceofAction extends BaseIntentionAction {
|
||||
private static final Logger LOG = Logger.getInstance(CreateLocalVarFromInstanceofAction.class);
|
||||
|
||||
|
||||
-3
@@ -39,9 +39,6 @@ import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class MoveClassToModuleFix implements IntentionAction {
|
||||
private final Map<PsiClass, Module> myModules = new LinkedHashMap<>();
|
||||
private final String myReferenceName;
|
||||
|
||||
-2
@@ -25,10 +25,8 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
* if (!a == b) ... => if (!(a == b)) ...
|
||||
*/
|
||||
|
||||
public class NegationBroadScopeFix implements IntentionAction {
|
||||
private final PsiPrefixExpression myPrefixExpression;
|
||||
|
||||
|
||||
@@ -40,9 +40,6 @@ import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class OrderEntryFix implements IntentionAction, LocalQuickFix {
|
||||
private final SmartPsiFileRange myReferencePointer;
|
||||
|
||||
|
||||
-3
@@ -27,9 +27,6 @@ import com.intellij.psi.PsiReferenceExpression;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class RemoveQualifierFix implements IntentionAction {
|
||||
private final PsiExpression myQualifier;
|
||||
private final PsiReferenceExpression myExpression;
|
||||
|
||||
-3
@@ -29,9 +29,6 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ReuseVariableDeclarationFix implements IntentionAction {
|
||||
private final PsiLocalVariable myVariable;
|
||||
|
||||
|
||||
-3
@@ -16,9 +16,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class MoveInitializerToConstructorAction extends BaseMoveInitializerToMethodAction {
|
||||
@Override
|
||||
@NotNull
|
||||
|
||||
-1
@@ -29,7 +29,6 @@ import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
* @author Tagir Valeev
|
||||
*/
|
||||
public class MoveFieldAssignmentToInitializerInspection extends AbstractBaseJavaLocalInspectionTool {
|
||||
|
||||
-3
@@ -17,9 +17,6 @@ import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class DefaultFileTemplateUsageInspection extends AbstractBaseJavaLocalInspectionTool {
|
||||
|
||||
/**
|
||||
|
||||
-3
@@ -40,9 +40,6 @@ import java.util.Properties;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class FileHeaderChecker {
|
||||
private static final Logger LOG = Logger.getInstance(FileHeaderChecker.class);
|
||||
|
||||
|
||||
-3
@@ -19,9 +19,6 @@ import com.intellij.codeInspection.LocalQuickFix;
|
||||
import com.intellij.java.JavaBundle;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class ReplaceWithFileTemplateFix implements LocalQuickFix {
|
||||
@Override
|
||||
@NotNull
|
||||
|
||||
-3
@@ -17,9 +17,6 @@ import java.util.Collections;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class FilePathReferenceProvider extends PsiReferenceProvider {
|
||||
|
||||
private final boolean myEndingSlashNotAllowed;
|
||||
|
||||
@@ -38,9 +38,6 @@ import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
class SliceForwardUtil {
|
||||
static boolean processUsagesFlownFromThe(@NotNull PsiElement element,
|
||||
@NotNull final JavaSliceUsage parent,
|
||||
|
||||
@@ -29,9 +29,6 @@ import com.intellij.usages.TextChunk;
|
||||
import com.intellij.util.FontUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
class SliceUsageCellRenderer extends SliceUsageCellRendererBase {
|
||||
@Override
|
||||
public void customizeCellRendererFor(@NotNull SliceUsage sliceUsage) {
|
||||
|
||||
@@ -52,9 +52,6 @@ import java.util.Collections;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
class SliceUtil {
|
||||
static boolean processUsagesFlownDownTo(@NotNull PsiElement expression,
|
||||
@NotNull Processor<? super SliceUsage> processor,
|
||||
|
||||
-3
@@ -31,9 +31,6 @@ import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class MoveInitializerToSetUpMethodAction extends BaseMoveInitializerToMethodAction {
|
||||
private static final Logger LOG = Logger.getInstance(MoveInitializerToSetUpMethodAction.class);
|
||||
|
||||
|
||||
@@ -41,9 +41,6 @@ import java.util.List;
|
||||
|
||||
import static com.intellij.util.containers.ContainerUtil.ar;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class UnscrambleDialog extends DialogWrapper {
|
||||
@NonNls private static final String PROPERTY_LOG_FILE_HISTORY_URLS = "UNSCRAMBLE_LOG_FILE_URL";
|
||||
@NonNls private static final String PROPERTY_LOG_FILE_LAST_URL = "UNSCRAMBLE_LOG_FILE_LAST_URL";
|
||||
|
||||
@@ -5,9 +5,6 @@ import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public interface PsiAnnotationOwner {
|
||||
/**
|
||||
* Returns the list of annotations syntactically contained in the element.
|
||||
|
||||
@@ -20,9 +20,6 @@ import com.intellij.psi.PsiType;
|
||||
import com.intellij.psi.PsiTypeParameter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public interface MethodSignature {
|
||||
MethodSignature[] EMPTY_ARRAY = new MethodSignature[0];
|
||||
|
||||
|
||||
@@ -20,9 +20,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public interface ControlFlow {
|
||||
ControlFlow EMPTY = new ControlFlowImpl();
|
||||
|
||||
|
||||
-3
@@ -21,9 +21,6 @@ import com.intellij.psi.PsiLanguageInjectionHost;
|
||||
import com.intellij.psi.impl.source.tree.java.PsiLiteralExpressionImpl;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class StringLiteralEscaper<T extends PsiLanguageInjectionHost> extends LiteralTextEscaper<T> {
|
||||
private int[] outSourceOffsets;
|
||||
|
||||
|
||||
-3
@@ -33,9 +33,6 @@ import java.util.*;
|
||||
|
||||
import static java.util.Collections.emptySet;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class WolfTheProblemSolverTest extends DaemonAnalyzerTestCase {
|
||||
@NonNls private static final String BASE_PATH = "/codeInsight/daemonCodeAnalyzer/projectWide";
|
||||
private MockWolfTheProblemSolver myWolfTheProblemSolver;
|
||||
|
||||
@@ -22,9 +22,6 @@ import com.intellij.testFramework.SkipSlowTestLocally;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import com.intellij.util.ThrowableRunnable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
@SkipSlowTestLocally
|
||||
public class RecursiveVisitorTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testHugeConcatenationVisitingPerformance() throws IncorrectOperationException {
|
||||
|
||||
-3
@@ -18,9 +18,6 @@ package com.intellij.java.codeInsight.daemon.quickFix;
|
||||
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ChangeMethodSignatureFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
@Override
|
||||
|
||||
-3
@@ -18,9 +18,6 @@ package com.intellij.java.codeInsight.daemon.quickFix;
|
||||
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ConvertDoubleToFloatFixTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
@Override
|
||||
|
||||
-3
@@ -21,9 +21,6 @@ import com.intellij.psi.codeStyle.JavaCodeStyleSettings;
|
||||
import com.siyeh.ig.style.MissortedModifiersInspection;
|
||||
import com.siyeh.ig.style.UnqualifiedFieldAccessInspection;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class CreateConstructorParameterFromFieldTest extends LightQuickFixParameterizedTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
|
||||
-3
@@ -32,9 +32,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class EmptyIntentionInspectionQuickFixTest extends LightQuickFixTestCase {
|
||||
@Override
|
||||
@NonNls
|
||||
|
||||
-1
@@ -21,7 +21,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* tests corresponding intention for availability only, does not invoke action
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class LightQuickFixAvailabilityTestCase extends LightQuickFixParameterizedTestCase {
|
||||
@Override
|
||||
|
||||
-3
@@ -15,9 +15,6 @@ import com.intellij.psi.impl.source.tree.injected.MyTestInjector
|
||||
import com.intellij.testFramework.IdeaTestUtil
|
||||
import com.intellij.testFramework.LightProjectDescriptor
|
||||
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
class HighlightUsagesHandlerTest extends LightJavaCodeInsightFixtureTestCase {
|
||||
final String basePath = JavaTestUtil.relativeJavaTestDataPath
|
||||
|
||||
|
||||
@@ -20,9 +20,6 @@ import java.io.File;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ControlFlowTest extends LightJavaCodeInsightTestCase {
|
||||
@NonNls private static final String BASE_PATH = "/psi/controlFlow";
|
||||
|
||||
|
||||
-3
@@ -21,9 +21,6 @@ import com.intellij.codeInspection.miscGenerics.RedundantArrayForVarargsCallInsp
|
||||
import com.siyeh.ig.LightJavaInspectionTestCase;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class RedundantArrayForVarargsCallInspectionTest extends LightJavaInspectionTestCase {
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
|
||||
@@ -23,9 +23,6 @@ import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class GotoImplementationTest extends JavaCodeInsightTestCase {
|
||||
|
||||
private static Collection<PsiElement> getClassImplementations(final PsiClass psiClass) {
|
||||
|
||||
@@ -23,9 +23,6 @@ import com.intellij.psi.PsiFileSystemItem;
|
||||
import com.intellij.psi.impl.include.FileIncludeInfo;
|
||||
import com.intellij.psi.impl.include.FileIncludeManager;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class FilePathResolveTest extends JavaCodeInsightTestCase {
|
||||
private static final String BASE_PATH = "/psi/resolve/filePath/";
|
||||
|
||||
|
||||
@@ -30,9 +30,6 @@ import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class SliceBackwardTest extends SliceTestCase {
|
||||
private void doTest() throws Exception {
|
||||
doTest("");
|
||||
|
||||
@@ -25,9 +25,6 @@ import com.intellij.slicer.*;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class SliceForwardTest extends SliceTestCase {
|
||||
private void dotest() throws Exception {
|
||||
configureByFile("/codeInsight/slice/forward/"+getTestName(false)+".java");
|
||||
|
||||
@@ -16,9 +16,6 @@ import org.jetbrains.annotations.NonNls;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class SliceTreeTest extends SliceTestCase {
|
||||
private SliceTreeStructure configureTree(@NonNls final String name) throws Exception {
|
||||
configureByFile("/codeInsight/slice/backward/"+ name +".java");
|
||||
|
||||
@@ -19,9 +19,6 @@ import groovy.transform.CompileStatic
|
||||
import junit.framework.TestCase
|
||||
import org.jetbrains.annotations.NonNls
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
@CompileStatic
|
||||
class NormalizeTextTest extends TestCase {
|
||||
void testCausedBy() {
|
||||
|
||||
@@ -19,9 +19,6 @@ package com.intellij.problems;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public interface Problem {
|
||||
@NotNull
|
||||
VirtualFile getVirtualFile();
|
||||
|
||||
@@ -13,9 +13,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class WolfTheProblemSolver {
|
||||
protected static final ExtensionPointName<Condition<VirtualFile>> FILTER_EP_NAME = ExtensionPointName.create("com.intellij.problemFileHighlightFilter");
|
||||
|
||||
|
||||
-3
@@ -25,9 +25,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class DaemonProgressIndicator extends AbstractProgressIndicatorBase implements StandardProgressIndicator, Disposable {
|
||||
private static boolean debug;
|
||||
private final TraceableDisposable myTraceableDisposable = new TraceableDisposable(debug);
|
||||
|
||||
-3
@@ -32,9 +32,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class ProgressableTextEditorHighlightingPass extends TextEditorHighlightingPass {
|
||||
private volatile boolean myFinished;
|
||||
private volatile long myProgressLimit;
|
||||
|
||||
@@ -22,9 +22,6 @@ import com.intellij.problems.Problem;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ProblemImpl implements Problem {
|
||||
private final VirtualFile virtualFile;
|
||||
private final HighlightInfo highlightInfo;
|
||||
|
||||
-3
@@ -40,9 +40,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class FileReference implements PsiFileReference, FileReferenceOwner, PsiPolyVariantReference,
|
||||
LocalQuickFixProvider,
|
||||
EmptyResolveMessageProvider, BindablePsiReference {
|
||||
|
||||
@@ -17,9 +17,6 @@ import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class StartupActionScriptManager {
|
||||
public static final String STARTUP_WIZARD_MODE = "StartupWizardMode";
|
||||
public static final String ACTION_SCRIPT_FILE = "action.script";
|
||||
|
||||
@@ -19,9 +19,6 @@ package com.intellij.openapi.application;
|
||||
import com.intellij.util.Processor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class ReadActionProcessor<T> implements Processor<T> {
|
||||
@Override
|
||||
public boolean process(final T t) {
|
||||
|
||||
@@ -18,9 +18,6 @@ package com.intellij.openapi.editor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class DocumentRunnable implements Runnable {
|
||||
private final Document myDocument;
|
||||
private final Project myProject;
|
||||
|
||||
@@ -11,9 +11,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class EncodingManager extends EncodingRegistry {
|
||||
@NonNls public static final String PROP_NATIVE2ASCII_SWITCH = "native2ascii";
|
||||
@NonNls public static final String PROP_PROPERTIES_FILES_ENCODING = "propertiesFilesEncoding";
|
||||
|
||||
@@ -6,9 +6,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class EncodingProjectManager extends EncodingManager {
|
||||
public static EncodingProjectManager getInstance(@NotNull Project project) {
|
||||
return project.getService(EncodingProjectManager.class);
|
||||
|
||||
@@ -19,9 +19,6 @@ package com.intellij.psi;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class LiteralTextEscaper<T extends PsiLanguageInjectionHost> {
|
||||
protected final T myHost;
|
||||
|
||||
|
||||
@@ -21,9 +21,6 @@ import com.intellij.psi.util.PsiUtilCore;
|
||||
import com.intellij.util.WalkingState;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class PsiWalkingState extends WalkingState<PsiElement> {
|
||||
private static final Logger LOG = Logger.getInstance(PsiWalkingState.class);
|
||||
private final PsiElementVisitor myVisitor;
|
||||
|
||||
-3
@@ -24,9 +24,6 @@ import com.intellij.psi.LiteralTextEscaper;
|
||||
import com.intellij.psi.impl.source.tree.PsiCommentImpl;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class CommentLiteralEscaper extends LiteralTextEscaper<PsiCommentImpl> {
|
||||
public CommentLiteralEscaper(PsiCommentImpl host) {
|
||||
super(host);
|
||||
|
||||
@@ -34,9 +34,6 @@ import com.intellij.util.Processor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class MarkupModelWindow extends UserDataHolderBase implements MarkupModelEx {
|
||||
private final DocumentWindow myDocument;
|
||||
private final MarkupModelEx myHostModel;
|
||||
|
||||
@@ -27,9 +27,6 @@ import com.intellij.problems.WolfTheProblemSolver;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
class WolfHighlightingPass extends ProgressableTextEditorHighlightingPass {
|
||||
WolfHighlightingPass(@NotNull Project project, @NotNull Document document, @NotNull PsiFile file) {
|
||||
super(project, document, DaemonBundle.message("pass.wolf"), file, null, TextRange.EMPTY_RANGE, false, new DefaultHighlightInfoProcessor());
|
||||
|
||||
-3
@@ -28,9 +28,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
final class UpdateFoldRegionsOperation implements Runnable {
|
||||
enum ApplyDefaultStateMode { YES, EXCEPT_CARET_REGION, NO }
|
||||
|
||||
|
||||
-3
@@ -27,9 +27,6 @@ import com.intellij.psi.PsiFile;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
@SuppressWarnings("IntentionDescriptionNotFoundInspection")
|
||||
public class EditFoldingOptionsAction implements IntentionAction, LowPriorityAction {
|
||||
@Override
|
||||
|
||||
-3
@@ -27,9 +27,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.function.BiConsumer;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class IntentionActionWithTextCaching implements Comparable<IntentionActionWithTextCaching>, PossiblyDumbAware, ShortcutProvider, IntentionActionDelegate {
|
||||
private static final Logger LOG = Logger.getInstance(IntentionActionWithTextCaching.class);
|
||||
private final List<IntentionAction> myOptionIntentions = new ArrayList<>();
|
||||
|
||||
@@ -29,9 +29,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class IntentionListStep implements ListPopupStep<IntentionActionWithTextCaching>, SpeedSearchFilter<IntentionActionWithTextCaching> {
|
||||
private static final Logger LOG = Logger.getInstance(IntentionListStep.class);
|
||||
|
||||
|
||||
@@ -13,9 +13,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class MockWolfTheProblemSolver extends WolfTheProblemSolver {
|
||||
private WolfTheProblemSolver myDelegate;
|
||||
|
||||
|
||||
@@ -48,9 +48,6 @@ import java.util.*;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public final class WolfTheProblemSolverImpl extends WolfTheProblemSolver {
|
||||
private final Map<VirtualFile, ProblemFileInfo> myProblems = new THashMap<>(); // guarded by myProblems
|
||||
private final Map<VirtualFile, Set<Object>> myProblemsFromExternalSources = new THashMap<>(); // guarded by myProblemsFromExternalSources
|
||||
|
||||
-3
@@ -15,9 +15,6 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class EditInspectionToolsSettingsInSuppressedPlaceIntention implements IntentionAction {
|
||||
private String myId;
|
||||
private String myDisplayName;
|
||||
|
||||
@@ -35,9 +35,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ShowRecentFindUsagesAction extends AnAction {
|
||||
@Override
|
||||
public void update(@NotNull final AnActionEvent e) {
|
||||
|
||||
@@ -16,9 +16,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ShowRecentFindUsagesGroup extends ActionGroup {
|
||||
@Override
|
||||
public void update(@NotNull final AnActionEvent e) {
|
||||
|
||||
@@ -22,9 +22,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import javax.swing.*;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
abstract class ChangeViewTypeActionBase extends ChangeHierarchyViewActionBase {
|
||||
ChangeViewTypeActionBase(final String shortDescription, final String longDescription, final Icon icon) {
|
||||
this(() -> shortDescription, () -> longDescription, icon);
|
||||
|
||||
@@ -21,9 +21,6 @@ import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public final class ViewClassHierarchyAction extends ChangeViewTypeActionBase {
|
||||
public ViewClassHierarchyAction() {
|
||||
super(IdeBundle.messagePointer("action.view.class.hierarchy"),
|
||||
|
||||
@@ -19,9 +19,6 @@ package com.intellij.ide.hierarchy;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.ide.IdeBundle;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public final class ViewSubtypesHierarchyAction extends ChangeViewTypeActionBase {
|
||||
public ViewSubtypesHierarchyAction() {
|
||||
super(IdeBundle.messagePointer("action.view.subtypes.hierarchy"),
|
||||
|
||||
@@ -19,9 +19,6 @@ package com.intellij.ide.hierarchy;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.ide.IdeBundle;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public final class ViewSupertypesHierarchyAction extends ChangeViewTypeActionBase {
|
||||
public ViewSupertypesHierarchyAction() {
|
||||
super(IdeBundle.messagePointer("action.view.supertypes.hierarchy"),
|
||||
|
||||
@@ -24,9 +24,6 @@ import com.intellij.usageView.UsageInfo;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class UsageInfo2ListRule implements GetDataRule {
|
||||
@Override
|
||||
@Nullable
|
||||
|
||||
@@ -23,9 +23,6 @@ import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class AbstractUrl {
|
||||
protected final String url;
|
||||
protected final String moduleName;
|
||||
|
||||
@@ -27,9 +27,6 @@ import com.intellij.psi.PsiDirectory;
|
||||
import com.intellij.psi.PsiManager;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class DirectoryUrl extends AbstractUrl {
|
||||
@NonNls private static final String ELEMENT_TYPE = "directory";
|
||||
|
||||
|
||||
@@ -13,9 +13,6 @@ import java.util.Comparator;
|
||||
|
||||
import static com.intellij.openapi.util.text.StringUtil.naturalCompare;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class GroupByTypeComparator implements Comparator<NodeDescriptor<?>> {
|
||||
private ProjectView myProjectView;
|
||||
private String myPaneId;
|
||||
|
||||
@@ -21,9 +21,6 @@ import com.intellij.openapi.module.ModuleManager;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ModuleUrl extends AbstractUrl {
|
||||
@NonNls private static final String ELEMENT_TYPE = "module";
|
||||
|
||||
|
||||
@@ -23,9 +23,6 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.roots.*;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class NamedLibraryUrl extends AbstractUrl {
|
||||
|
||||
@NonNls private static final String ELEMENT_TYPE = "namedLibrary";
|
||||
|
||||
@@ -19,9 +19,6 @@ import com.intellij.ui.tree.project.ProjectFileNode;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ScopePaneSelectInTarget extends ProjectViewSelectInTarget {
|
||||
public ScopePaneSelectInTarget(final Project project) {
|
||||
super(project);
|
||||
|
||||
-4
@@ -13,7 +13,6 @@ import com.intellij.openapi.editor.markup.TextAttributes;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.openapi.util.ModificationTracker;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -21,9 +20,6 @@ import java.awt.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
class FoldingModelWindow implements FoldingModelEx, ModificationTracker {
|
||||
private final FoldingModelEx myDelegate;
|
||||
private final DocumentWindow myDocumentWindow;
|
||||
|
||||
@@ -33,9 +33,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
class LeafPatcher extends RecursiveTreeElementWalkingVisitor {
|
||||
private static final Logger LOG = Logger.getInstance(LeafPatcher.class);
|
||||
private int shredNo;
|
||||
|
||||
@@ -24,9 +24,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/ // rehash map on each PSI modification since SmartPsiPointer's hashCode() and equals() are changed
|
||||
// rehash map on each PSI modification since SmartPsiPointer's hashCode() and equals() are changed
|
||||
public class DuplicateMap {
|
||||
private static final TObjectHashingStrategy<SliceUsage> USAGE_INFO_EQUALITY = new TObjectHashingStrategy<SliceUsage>() {
|
||||
@Override
|
||||
|
||||
@@ -21,9 +21,6 @@ import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.util.PlatformIcons;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class GroupByLeavesAction extends AnAction {
|
||||
private final SliceTreeBuilder myTreeBuilder;
|
||||
|
||||
|
||||
@@ -19,9 +19,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public interface MyColoredTreeCellRenderer {
|
||||
void customizeCellRenderer(@NotNull SliceUsageCellRendererBase renderer,
|
||||
@NotNull JTree tree,
|
||||
|
||||
@@ -23,9 +23,6 @@ import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class SliceBackwardAction extends CodeInsightAction {
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
@@ -23,9 +23,6 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class SliceForwardAction extends CodeInsightAction {
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -27,9 +27,6 @@ import com.intellij.psi.PsiElement;
|
||||
import javax.swing.*;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
class SliceForwardHandler extends SliceHandler {
|
||||
SliceForwardHandler() {
|
||||
super(false);
|
||||
|
||||
@@ -15,9 +15,6 @@ import com.intellij.psi.PsiFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class SliceHandler implements CodeInsightActionHandler {
|
||||
private static final Logger LOG = Logger.getInstance(SliceHandler.class);
|
||||
final boolean myDataFlowToThis;
|
||||
|
||||
@@ -38,9 +38,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class SliceLeafAnalyzer {
|
||||
private static final Logger LOG = Logger.getInstance(SliceLeafAnalyzer.class);
|
||||
|
||||
|
||||
@@ -17,9 +17,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class SliceLeafValueRootNode extends SliceNode implements MyColoredTreeCellRenderer {
|
||||
public final List<SliceNode> myCachedChildren;
|
||||
|
||||
|
||||
@@ -39,9 +39,6 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class SliceNode extends AbstractTreeNode<SliceUsage> implements DuplicateNodeRenderer.DuplicatableNode<SliceNode>, MyColoredTreeCellRenderer {
|
||||
protected List<SliceNode> myCachedChildren;
|
||||
boolean dupNodeCalculated;
|
||||
|
||||
@@ -44,9 +44,6 @@ import java.awt.event.KeyEvent;
|
||||
import java.util.List;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class SlicePanel extends JPanel implements TypeSafeDataProvider, Disposable {
|
||||
private final SliceTreeBuilder myBuilder;
|
||||
private final JTree myTree;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user