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 16
16
public final class AllFilesExceptTestsScope extends GlobalSearchScope {
17
17
18
18
public static final String SCOPE_NAME = "All Files Except Tests" ;
19
- private static AllFilesExceptTestsScope instance ;
20
19
private final Project project ;
21
20
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
-
40
21
/**
41
22
* Magento search scope constructor.
42
23
*
43
24
* @param project Project
44
25
*/
45
- private AllFilesExceptTestsScope (final @ Nullable Project project ) {
26
+ public AllFilesExceptTestsScope (final @ Nullable Project project ) {
46
27
super (project );
47
28
this .project = project ;
48
29
}
Original file line number Diff line number Diff line change @@ -32,6 +32,6 @@ public class MagentoSearchScopesProvider implements SearchScopeProvider {
32
32
return Collections .emptyList ();
33
33
}
34
34
35
- return Collections .singletonList (AllFilesExceptTestsScope . getInstance (project ));
35
+ return Collections .singletonList (new AllFilesExceptTestsScope (project ));
36
36
}
37
37
}
You can’t perform that action at this time.
0 commit comments