From 9002cf5f3c9a541639e83a924eeb856d306e0a62 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Sat, 16 Mar 2024 14:29:42 +0100 Subject: [PATCH] Refactor method call in TextMateServiceImpl The changes involve the method 'disableBuiltinBundles' inside 'TextMateServiceImpl'. The direct call to the method 'reloadEnabledBundles()' replaces the previous, unnecessary use of 'TextMateService.getInstance().reloadEnabledBundles()'. This refactoring yields cleaner, more readable code. GitOrigin-RevId: ed670cf20a3537260cefc5d7c392dd451dd3bf8e --- .../src/org/jetbrains/plugins/textmate/TextMateServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/textmate/src/org/jetbrains/plugins/textmate/TextMateServiceImpl.java b/plugins/textmate/src/org/jetbrains/plugins/textmate/TextMateServiceImpl.java index 345eaf3f42f4..23b43ae240e9 100644 --- a/plugins/textmate/src/org/jetbrains/plugins/textmate/TextMateServiceImpl.java +++ b/plugins/textmate/src/org/jetbrains/plugins/textmate/TextMateServiceImpl.java @@ -360,7 +360,7 @@ public final class TextMateServiceImpl extends TextMateService { @TestOnly public void disableBuiltinBundles(Disposable disposable) { ourBuiltinBundlesDisabled = true; - TextMateService.getInstance().reloadEnabledBundles(); + reloadEnabledBundles(); myInitialized = true; Disposer.register(disposable, () -> { ourBuiltinBundlesDisabled = false;