Commit 53cf3b63 authored by Elena Shaverdova's avatar Elena Shaverdova Committed by intellij-monorepo-bot
Browse files

Rename methods to better explain what they do IDEA-331326

(cherry picked from commit c385f685e87c95f6dec0e2971bb19e8b0b0af624)

IJ-CR-132215

GitOrigin-RevId: db8b9387adaaea9b48f3f50e683006cafb99c50b
parent d1544508
Showing with 18 additions and 18 deletions
+18 -18
......@@ -50,24 +50,24 @@ public interface StubInconsistencyReporter {
}
}
void reportStubInconsistency(@NotNull Project project,
@Nullable StubInconsistencyReporter.SourceOfCheck reason,
@NotNull InconsistencyType type);
void reportStubInconsistencyBetweenPsiAndText(@NotNull Project project,
@Nullable StubInconsistencyReporter.SourceOfCheck reason,
@NotNull InconsistencyType type);
/**
* @deprecated Use {@link #reportStubInconsistency(Project, SourceOfCheck, InconsistencyType)}
* @deprecated Use {@link #reportStubInconsistencyBetweenPsiAndText(Project, SourceOfCheck, InconsistencyType)}
*/
@Deprecated
void reportEnforcedStubInconsistency(@NotNull Project project, @NotNull StubInconsistencyReporter.SourceOfCheck reason,
@NotNull EnforcedInconsistencyType enforcedInconsistencyType);
/**
* @deprecated Use {@link #reportStubInconsistency(Project, SourceOfCheck, InconsistencyType)}
* @deprecated Use {@link #reportStubInconsistencyBetweenPsiAndText(Project, SourceOfCheck, InconsistencyType)}
*/
@Deprecated
void reportStubInconsistency(@NotNull Project project, @NotNull StubInconsistencyReporter.SourceOfCheck reason,
@NotNull InconsistencyType type,
@Nullable EnforcedInconsistencyType enforcedInconsistencyType);
void reportStubInconsistencyBetweenPsiAndText(@NotNull Project project, @NotNull StubInconsistencyReporter.SourceOfCheck reason,
@NotNull InconsistencyType type,
@Nullable EnforcedInconsistencyType enforcedInconsistencyType);
void reportKotlinDescriptorNotFound(@Nullable Project project);
......
......@@ -125,7 +125,7 @@ public final class StubTextInconsistencyException extends RuntimeException imple
private static void reportInconsistency(@NotNull PsiFile file,
@Nullable StubInconsistencyReporter.SourceOfCheck reason,
@NotNull InconsistencyType inconsistencyType) {
StubInconsistencyReporter.getInstance().reportStubInconsistency(file.getProject(), reason, inconsistencyType);
StubInconsistencyReporter.getInstance().reportStubInconsistencyBetweenPsiAndText(file.getProject(), reason, inconsistencyType);
}
private static @NotNull List<PsiFileStub<?>> restoreStubsFromText(FileViewProvider viewProvider) {
......
......@@ -56,7 +56,7 @@ object StubInconsistencyReportUtil {
)
@JvmStatic
fun reportStubInconsistency(project: Project, reason: SourceOfCheck?, type: InconsistencyType) {
fun reportStubInconsistencyBetweenPsiAndText(project: Project, reason: SourceOfCheck?, type: InconsistencyType) {
val parameters = mutableListOf<EventPair<*>>(INCONSISTENCY_TYPE_FIELD.with(type))
reason?.let { parameters.add(CHECK_REASON_FIELD.with(it)) }
STUB_INCONSISTENCY_EVENT.log(project, parameters)
......
......@@ -10,10 +10,10 @@ import org.jetbrains.annotations.Nullable;
@ApiStatus.Internal
public class StubInconsistencyReporterImpl implements StubInconsistencyReporter {
@Override
public void reportStubInconsistency(@NotNull Project project,
@Nullable SourceOfCheck reason,
@NotNull InconsistencyType type) {
StubInconsistencyReportUtil.reportStubInconsistency(project, reason, type);
public void reportStubInconsistencyBetweenPsiAndText(@NotNull Project project,
@Nullable SourceOfCheck reason,
@NotNull InconsistencyType type) {
StubInconsistencyReportUtil.reportStubInconsistencyBetweenPsiAndText(project, reason, type);
}
@Override
......@@ -24,10 +24,10 @@ public class StubInconsistencyReporterImpl implements StubInconsistencyReporter
}
@Override
public void reportStubInconsistency(@NotNull Project project,
@NotNull StubInconsistencyReporter.SourceOfCheck reason,
@NotNull InconsistencyType type,
@SuppressWarnings("deprecation") @Nullable EnforcedInconsistencyType enforcedInconsistencyType) {
public void reportStubInconsistencyBetweenPsiAndText(@NotNull Project project,
@NotNull StubInconsistencyReporter.SourceOfCheck reason,
@NotNull InconsistencyType type,
@SuppressWarnings("deprecation") @Nullable EnforcedInconsistencyType enforcedInconsistencyType) {
//ignore
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment