mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FilePropertyPusher - avoid noisy deprecated messages in logs (for the case the none of initExtra methods is implemented)
GitOrigin-RevId: dbce25e9ceef5d57dcb71e164159f31c48b65f78
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f1308e5f2e
commit
ef56de7e4d
+3
-4
@@ -7,7 +7,6 @@ import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.DeprecatedMethodException;
|
||||
import com.intellij.util.messages.MessageBus;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -108,7 +107,10 @@ public interface FilePropertyPusher<T> {
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
|
||||
interface Engine {
|
||||
@SuppressWarnings("unused")
|
||||
void pushAll();
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
void pushRecursively(@NotNull VirtualFile vile, @NotNull Project project);
|
||||
}
|
||||
|
||||
@@ -118,18 +120,15 @@ public interface FilePropertyPusher<T> {
|
||||
@Deprecated
|
||||
@SuppressWarnings("DeprecatedIsStillUsed")
|
||||
default boolean acceptsFile(@NotNull VirtualFile file) {
|
||||
DeprecatedMethodException.report("Please override FilePropertyPusher#acceptsFile(VirtualFile, Project)");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #initExtra(Project)}
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings({"unused", "DeprecatedIsStillUsed"})
|
||||
default void initExtra(@NotNull Project project, @NotNull MessageBus bus) {
|
||||
DeprecatedMethodException.report("Please override FilePropertyPusher#initExtra(Project)");
|
||||
}
|
||||
|
||||
//</editor-fold>
|
||||
|
||||
Reference in New Issue
Block a user