Skip to content

Commit 5103b60

Browse files
author
James Judd
committed
Fix merge conflict correctly
1 parent 4406c50 commit 5103b60

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scala/src/com/google/idea/blaze/scala/sync/BlazeScalaSyncPlugin.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import com.google.idea.blaze.scala.sync.importer.BlazeScalaWorkspaceImporter;
3838
import com.google.idea.blaze.scala.sync.model.BlazeScalaImportResult;
3939
import com.google.idea.blaze.scala.sync.model.BlazeScalaSyncData;
40-
import com.google.idea.sdkcompat.general.BaseSdkCompat;
4140
import com.intellij.openapi.application.WriteAction;
4241
import com.intellij.openapi.externalSystem.service.project.IdeModifiableModelsProvider;
4342
import 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 {

0 commit comments

Comments
 (0)