mirror of https://github.com/sbt/sbt.git
Fix warnings in TaskLinterDSL.scala
This commit is contained in:
parent
498ef3652b
commit
8d9a3a35d2
|
|
@ -2,7 +2,7 @@ package sbt.std
|
|||
|
||||
import sbt.SettingKey
|
||||
import sbt.internal.util.ConsoleAppender
|
||||
import sbt.internal.util.appmacro.{ Convert, Converted, LinterDSL }
|
||||
import sbt.internal.util.appmacro.{ Convert, LinterDSL }
|
||||
|
||||
import scala.collection.mutable.{ HashSet => MutableSet }
|
||||
import scala.io.AnsiColor
|
||||
|
|
@ -27,7 +27,7 @@ abstract class BaseTaskLinterDSL extends LinterDSL {
|
|||
|
||||
def handleUncheckedAnnotation(exprAtUseSite: Tree, tt: TypeTree): Unit = {
|
||||
tt.original match {
|
||||
case Annotated(annot, arg) =>
|
||||
case Annotated(annot, _) =>
|
||||
Option(annot.tpe) match {
|
||||
case Some(AnnotatedType(annotations, _)) =>
|
||||
val tpeAnnotations = annotations.flatMap(ann => Option(ann.tree.tpe).toList)
|
||||
|
|
|
|||
Loading…
Reference in New Issue