Navigation Menu

Skip to content

Commit

Permalink
added Option(_) quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ikuraj committed Sep 29, 2012
1 parent 749925a commit ef389f1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -4,7 +4,7 @@ package scala.tools.eclipse.quickfix
import java.util.regex.Pattern

/**
* @author ivcha
* @author Ivan Kuraj
* This object is used for applying code transformations based on the found and required type
* extract from the annotation message (such as quick fix message) and the expression in the source code.
* The object arguments are: found type string, required type string and annotation string, respective and
Expand All @@ -28,7 +28,7 @@ object TypeMismatchQuickFixProcessor extends
),
// "type mismatch: found T; required Option[T]" -> suggest to wrap the result in Some()
FoundToRequiredTypeCase(
List("Some(%s)"),
List("Option(%s)", "Some(%s)"),
Pattern.compile("(.*)"), Pattern.compile("Option\\[(.*)\\]"), Pattern.compile("^(.*)$")
)
)
Expand Down

0 comments on commit ef389f1

Please sign in to comment.