registry key usage, regexp applicability fixed

GitOrigin-RevId: 450c1dd404d9a174255523dbbf74e28b9f8bafe5
This commit is contained in:
Andrew Kozlov
2019-12-23 12:36:11 +00:00
committed by intellij-monorepo-bot
parent c61ed81471
commit b932669549
2 changed files with 5 additions and 5 deletions
@@ -47,7 +47,7 @@ public final class EventsWatcher implements Disposable {
private static final long ourStartTimestamp = System.currentTimeMillis();
@NotNull
private static final NotNullLazyValue<Boolean> ourIsEnabled =
NotNullLazyValue.createValue(() -> Registry.is("ide.event.queue.dispatch.enabled", false));
NotNullLazyValue.createValue(() -> Registry.is("ide.event.queue.dispatch.log.enabled", false));
@NotNull
private static final NotNullLazyValue<Field> ourRunnableField =
NotNullLazyValue.createValue(() -> Objects.requireNonNull(findTargetField(InvocationEvent.class)));
@@ -159,9 +159,9 @@ public final class EventsWatcher implements Disposable {
public void edtEventStarted(@NotNull AWTEvent event) {
Matcher matcher = DESCRIPTION_BY_EVENT.matcher(event.toString());
//noinspection ResultOfMethodCallIgnored
matcher.find();
myCurrentResult = matcher.toMatchResult();
myCurrentResult = matcher.find() ?
matcher.toMatchResult() :
null;
}
public void edtEventFinished(@NotNull AWTEvent event,
@@ -971,7 +971,7 @@ inplace.rename.segments.limit=200
emmet.segments.limit=50
command.line.execution.timeout=30
ide.event.queue.dispatch.log.enabled=true
ide.event.queue.dispatch.log.enabled=false
ide.event.queue.dispatch.log.enabled.description=Log EDT events
ide.event.queue.dispatch.log.enabled.restartRequired=true
ide.event.queue.dispatch.threshold=10