File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
scala/src/com/google/idea/blaze/scala/sync Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3737import com .google .idea .blaze .scala .sync .importer .BlazeScalaWorkspaceImporter ;
3838import com .google .idea .blaze .scala .sync .model .BlazeScalaImportResult ;
3939import com .google .idea .blaze .scala .sync .model .BlazeScalaSyncData ;
40- import com .google .idea .sdkcompat .general .BaseSdkCompat ;
4140import com .intellij .openapi .application .WriteAction ;
4241import com .intellij .openapi .externalSystem .service .project .IdeModifiableModelsProvider ;
4342import com .intellij .openapi .module .Module ;
@@ -75,7 +74,7 @@ public Set<LanguageClass> getSupportedLanguagesInWorkspace(WorkspaceType workspa
7574 return ImmutableSet .of ();
7675 }
7776
78- private final Pattern versionPattern = Pattern .compile ("\\ d+(?:\\ .\\ d+)+" );
77+ private static final Pattern versionPattern = Pattern .compile ("\\ d+(?:\\ .\\ d+)+" );
7978
8079 private static final Pattern RUNTIME_LIBRARY = Pattern .compile ("((?:scala-|dotty-|scala3-|org_scala_lang_scala_)library).+" );
8180
@@ -84,7 +83,7 @@ private static boolean isRuntimeLibrary(String name) {
8483 }
8584
8685 private static Option <String > libraryVersion (String name ) {
87- Matcher matcher = LIBRARY_VERSION .matcher (name );
86+ Matcher matcher = versionPattern .matcher (name );
8887 if (matcher .find ()) {
8988 return Option .<String >apply (matcher .group ());
9089 } else {
You can’t perform that action at this time.
0 commit comments