mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removed UnusedDeclaration suppression from deprecated members since their usages are ignored anyway now
This commit is contained in:
+3
-3
@@ -33,11 +33,11 @@ import org.jetbrains.annotations.Nullable;
|
||||
*/
|
||||
public class DefaultFileTemplateUsageInspection extends BaseJavaLocalInspectionTool {
|
||||
// Fields are left for the compatibility
|
||||
@Deprecated @SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public boolean CHECK_FILE_HEADER = true;
|
||||
@Deprecated @SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public boolean CHECK_TRY_CATCH_SECTION = true;
|
||||
@Deprecated @SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public boolean CHECK_METHOD_BODY = true;
|
||||
|
||||
@Override
|
||||
|
||||
-1
@@ -54,7 +54,6 @@ public class MethodImplementationsSearch implements QueryExecutor<PsiElement, De
|
||||
return OverridingMethodsSearch.search(method, scope, true).forEach(processor);
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public static PsiMethod[] getMethodImplementations(final PsiMethod method, SearchScope scope) {
|
||||
List<PsiMethod> result = new ArrayList<>();
|
||||
|
||||
-1
@@ -36,7 +36,6 @@ public abstract class InspectionProjectProfileManager implements InspectionProfi
|
||||
/**
|
||||
* @deprecated use {@link #getCurrentProfile()} instead
|
||||
*/
|
||||
@SuppressWarnings({"UnusedDeclaration"})
|
||||
@NotNull
|
||||
public InspectionProfile getInspectionProfile(PsiElement element){
|
||||
return getCurrentProfile();
|
||||
|
||||
@@ -280,7 +280,6 @@ public class ActionCallback implements Disposable {
|
||||
/**
|
||||
* @deprecated use {@link #notifyWhenRejected(ActionCallback)}
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@NotNull
|
||||
@Deprecated
|
||||
public Runnable createSetRejectedRunnable() {
|
||||
|
||||
@@ -356,7 +356,6 @@ public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
|
||||
return new PsiPlainTextFileImpl(this);
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public static boolean isTooLarge(@NotNull VirtualFile vFile) {
|
||||
return isTooLargeForIntelligence(vFile);
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
public abstract class GenericProgramRunner<Settings extends RunnerSettings> extends BaseProgramRunner<Settings> {
|
||||
@Deprecated
|
||||
public static final DataKey<RunContentDescriptor> CONTENT_TO_REUSE_DATA_KEY = DataKey.create("contentToReuse");
|
||||
@SuppressWarnings({"UnusedDeclaration", "deprecation"}) @Deprecated @NonNls
|
||||
@Deprecated @NonNls
|
||||
public static final String CONTENT_TO_REUSE = CONTENT_TO_REUSE_DATA_KEY.getName();
|
||||
|
||||
@Override
|
||||
|
||||
@@ -180,13 +180,10 @@ public class CodeStyleSettings extends CommonCodeStyleSettings implements Clonea
|
||||
|
||||
public boolean AUTODETECT_INDENTS = true;
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public final IndentOptions JAVA_INDENT_OPTIONS = new IndentOptions();
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public final IndentOptions JSP_INDENT_OPTIONS = new IndentOptions();
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public final IndentOptions XML_INDENT_OPTIONS = new IndentOptions();
|
||||
|
||||
|
||||
-2
@@ -48,14 +48,12 @@ public class PostfixTemplatesSettings implements PersistentStateComponent<Elemen
|
||||
@NotNull
|
||||
private Map<String, Boolean> myTemplatesState = ContainerUtil.newHashMap();
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
@NotNull
|
||||
public Map<String, Boolean> getTemplatesState() {
|
||||
return myTemplatesState;
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public void setTemplatesState(@NotNull Map<String, Boolean> templatesState) {
|
||||
myTemplatesState = templatesState;
|
||||
|
||||
@@ -49,11 +49,10 @@ public interface FormattingModelBuilderEx extends FormattingModelBuilder {
|
||||
* @param ranges given file's ranges to reformat
|
||||
* @param settings code style settings holder
|
||||
* @return indent options to use for the target formatting operation (if any adjustment is required);
|
||||
* <code>null</code> to trigger default algorithm usage
|
||||
* @deprecated Use <code>FileIndentOptionsProvider</code> instead.
|
||||
* {@code null} to trigger default algorithm usage
|
||||
* @deprecated Use {@code com.intellij.psi.codeStyle.FileIndentOptionsProvider} instead.
|
||||
* @see com.intellij.psi.codeStyle.FileIndentOptionsProvider
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Nullable
|
||||
@Deprecated
|
||||
CommonCodeStyleSettings.IndentOptions getIndentOptionsToUse(@NotNull PsiFile file,
|
||||
|
||||
@@ -83,7 +83,6 @@ public class BrowserUtil {
|
||||
/**
|
||||
* @deprecated Use {@link #browse(String)}
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
public static void launchBrowser(@NotNull @NonNls String url) {
|
||||
browse(url);
|
||||
@@ -113,7 +112,6 @@ public class BrowserUtil {
|
||||
getBrowserLauncher().browse(url, null, project);
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@NotNull
|
||||
@Deprecated
|
||||
public static List<String> getOpenBrowserCommand(@NonNls @NotNull String browserPathOrName) {
|
||||
|
||||
@@ -30,7 +30,6 @@ public abstract class TestStatusListener {
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public static void notifySuiteFinished(AbstractTestProxy root) {
|
||||
for (TestStatusListener statusListener : Extensions.getExtensions(EP_NAME)) {
|
||||
statusListener.testSuiteFinished(root);
|
||||
|
||||
@@ -380,7 +380,6 @@ public class NameUtil {
|
||||
boolean matches(@NotNull String name);
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
@NotNull
|
||||
public static com.intellij.util.text.Matcher buildCompletionMatcher(@NotNull String pattern, int exactPrefixLen, boolean allowToUpper, boolean allowToLower) {
|
||||
|
||||
+2
-5
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.siyeh.ig.errorhandling;
|
||||
|
||||
import com.intellij.codeInspection.ui.SingleCheckboxOptionsPanel;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.util.InheritanceUtil;
|
||||
import com.siyeh.InspectionGadgetsBundle;
|
||||
@@ -24,13 +23,11 @@ import com.siyeh.ig.BaseInspectionVisitor;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class NewExceptionWithoutArgumentsInspection extends BaseInspection {
|
||||
|
||||
@Deprecated
|
||||
@SuppressWarnings({"PublicField", "UnusedDeclaration"})
|
||||
public boolean ignoreWithoutParameters = false;
|
||||
@SuppressWarnings("PublicField")
|
||||
public boolean ignoreWithoutParameters;
|
||||
|
||||
@Nls
|
||||
@NotNull
|
||||
|
||||
@@ -69,7 +69,6 @@ public abstract class CoverageDataManager implements ProjectComponent, JDOMExter
|
||||
/**
|
||||
* TeamCity 3.1.1 compatibility
|
||||
*/
|
||||
@SuppressWarnings({"UnusedDeclaration"})
|
||||
@Deprecated
|
||||
public CoverageSuite addCoverageSuite(String name,
|
||||
CoverageFileProvider fileProvider,
|
||||
|
||||
Reference in New Issue
Block a user