mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
Cleanup: use light services
^IDEA-254577 GitOrigin-RevId: 01afb3f2166f8713cd4599f37d43ecf7f4d2944c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
33dc0b0678
commit
1a62d88764
@@ -57,8 +57,6 @@
|
||||
serviceImplementation="com.intellij.openapi.roots.impl.ModulePackageIndexImpl"/>
|
||||
<projectService serviceInterface="com.intellij.openapi.roots.PackageIndex"
|
||||
serviceImplementation="com.intellij.openapi.roots.impl.ProjectPackageIndexImpl"/>
|
||||
<projectService
|
||||
serviceImplementation="com.intellij.psi.impl.search.HighlightingCaches"/>
|
||||
<implicitToStringSearch implementation="com.intellij.psi.impl.search.ImplicitToStringSearcher"/>
|
||||
<functionalExpressionSearch implementation="com.intellij.psi.impl.search.JavaFunctionalExpressionSearcher"/>
|
||||
<definitionsScopedSearch implementation="com.intellij.codeInsight.navigation.ClassImplementationsSearch"/>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.psi.impl.search;
|
||||
|
||||
import com.intellij.openapi.components.Service;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.PsiClass;
|
||||
import com.intellij.psi.PsiMethod;
|
||||
@@ -15,6 +16,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
@Service(Service.Level.PROJECT)
|
||||
final class HighlightingCaches {
|
||||
public static HighlightingCaches getInstance(Project project) {
|
||||
return project.getService(HighlightingCaches.class);
|
||||
|
||||
Reference in New Issue
Block a user