File tree Expand file tree Collapse file tree 2 files changed +2
-21
lines changed
src/com/magento/idea/magento2plugin/lang/psi/search Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 1616public final class AllFilesExceptTestsScope extends GlobalSearchScope {
1717
1818 public static final String SCOPE_NAME = "All Files Except Tests" ;
19- private static AllFilesExceptTestsScope instance ;
2019 private final Project project ;
2120
22- /**
23- * Get search scope instance.
24- *
25- * @param project Project
26- *
27- * @return AllFilesExceptTestsScope
28- */
29- @ SuppressWarnings ("PMD.AvoidSynchronizedAtMethodLevel" )
30- public static synchronized AllFilesExceptTestsScope getInstance (
31- final @ Nullable Project project
32- ) {
33- if (instance == null ) {
34- instance = new AllFilesExceptTestsScope (project );
35- }
36-
37- return instance ;
38- }
39-
4021 /**
4122 * Magento search scope constructor.
4223 *
4324 * @param project Project
4425 */
45- private AllFilesExceptTestsScope (final @ Nullable Project project ) {
26+ public AllFilesExceptTestsScope (final @ Nullable Project project ) {
4627 super (project );
4728 this .project = project ;
4829 }
Original file line number Diff line number Diff line change @@ -32,6 +32,6 @@ public class MagentoSearchScopesProvider implements SearchScopeProvider {
3232 return Collections .emptyList ();
3333 }
3434
35- return Collections .singletonList (AllFilesExceptTestsScope . getInstance (project ));
35+ return Collections .singletonList (new AllFilesExceptTestsScope (project ));
3636 }
3737}
You can’t perform that action at this time.
0 commit comments