From f8c553f9bf9635f7f1af02c2aefd64e67aca43ed Mon Sep 17 00:00:00 2001 From: Daniel Brauner Date: Fri, 15 Nov 2024 18:11:00 +0100 Subject: [PATCH] WORKAROUND: removed usage of incompatible alarm constructor Since google targets 243 this constructor is not available in 242. --- .../google/idea/common/experiments/ExperimentServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/experiments/src/com/google/idea/common/experiments/ExperimentServiceImpl.java b/common/experiments/src/com/google/idea/common/experiments/ExperimentServiceImpl.java index e1a51e9a257..82855ede83a 100644 --- a/common/experiments/src/com/google/idea/common/experiments/ExperimentServiceImpl.java +++ b/common/experiments/src/com/google/idea/common/experiments/ExperimentServiceImpl.java @@ -77,8 +77,7 @@ public class ExperimentServiceImpl implements ApplicationComponent, ExperimentSe services = ImmutableList.copyOf(loaders); this.channelSupplier = channelSupplier; // Bypass unregistered application service AlarmSharedCoroutineScopeHolder. It's a private service which hard to mock - this.alarm = new Alarm(ThreadToUse.POOLED_THREAD, ApplicationManager.getApplication(), null, - scope); + this.alarm = new Alarm(ThreadToUse.POOLED_THREAD, ApplicationManager.getApplication()); // #api242 revert this commit if (ApplicationManager.getApplication().isUnitTestMode()) { refreshExperiments(); }