mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java: fix spelling of method names ("IfNeeded" instead of "IfNeed")
"if need" is grammatically incorrect, "if needed" should be used instead. GitOrigin-RevId: 9da71ad79b959efb1b76b8078a2eda4058ad80d9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
68531acf1f
commit
3c98bb3110
+5
-5
@@ -114,7 +114,7 @@ public abstract class CompilerReferenceServiceBase<Reader extends CompilerRefere
|
||||
}
|
||||
executeOnBuildThread(() -> {
|
||||
if (isUpToDate) {
|
||||
openReaderIfNeed(IndexOpenReason.UP_TO_DATE_CACHE);
|
||||
openReaderIfNeeded(IndexOpenReason.UP_TO_DATE_CACHE);
|
||||
} else {
|
||||
markAsOutdated(validIndexExists);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ public abstract class CompilerReferenceServiceBase<Reader extends CompilerRefere
|
||||
});
|
||||
}
|
||||
|
||||
Disposer.register(myProject, () -> closeReaderIfNeed(IndexCloseReason.PROJECT_CLOSED));
|
||||
Disposer.register(myProject, () -> closeReaderIfNeeded(IndexCloseReason.PROJECT_CLOSED));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -386,7 +386,7 @@ public abstract class CompilerReferenceServiceBase<Reader extends CompilerRefere
|
||||
}
|
||||
}
|
||||
|
||||
protected void closeReaderIfNeed(IndexCloseReason reason) {
|
||||
protected void closeReaderIfNeeded(IndexCloseReason reason) {
|
||||
myOpenCloseLock.lock();
|
||||
try {
|
||||
if (reason == IndexCloseReason.COMPILATION_STARTED) {
|
||||
@@ -402,7 +402,7 @@ public abstract class CompilerReferenceServiceBase<Reader extends CompilerRefere
|
||||
}
|
||||
}
|
||||
|
||||
protected void openReaderIfNeed(IndexOpenReason reason) {
|
||||
protected void openReaderIfNeeded(IndexOpenReason reason) {
|
||||
myCompilationCount.increment();
|
||||
myOpenCloseLock.lock();
|
||||
try {
|
||||
@@ -606,7 +606,7 @@ public abstract class CompilerReferenceServiceBase<Reader extends CompilerRefere
|
||||
LOG.error("an exception during " + actionName + " calculation", e);
|
||||
Throwable unwrapped = e instanceof RuntimeException ? e.getCause() : e;
|
||||
if (requireIndexRebuild(unwrapped)) {
|
||||
closeReaderIfNeed(IndexCloseReason.AN_EXCEPTION);
|
||||
closeReaderIfNeeded(IndexCloseReason.AN_EXCEPTION);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
+2
-2
@@ -55,7 +55,7 @@ public class CompilerReferenceServiceImpl extends CompilerReferenceServiceBase<B
|
||||
@Override
|
||||
public void buildStarted(@NotNull Project project, @NotNull UUID sessionId, boolean isAutomake) {
|
||||
if (project == myProject) {
|
||||
closeReaderIfNeed(IndexCloseReason.COMPILATION_STARTED);
|
||||
closeReaderIfNeeded(IndexCloseReason.COMPILATION_STARTED);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -79,7 +79,7 @@ public class CompilerReferenceServiceImpl extends CompilerReferenceServiceBase<B
|
||||
return context.getCompileScope().getAffectedModules();
|
||||
});
|
||||
if (compilationModules == null) return;
|
||||
openReaderIfNeed(IndexOpenReason.COMPILATION_FINISHED);
|
||||
openReaderIfNeeded(IndexOpenReason.COMPILATION_FINISHED);
|
||||
};
|
||||
executeOnBuildThread(compilationFinished);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user