Skip to content

Commit

Permalink
Fix warning of using java.util.List
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmendez committed Dec 23, 2019
1 parent b5c1133 commit e7761af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ case class YamlParser(permissive: Boolean) extends Parser {

} else {
val prefixForValue = value match {
case _: java.util.List[Any] => ""
case _: java.util.List[_] => ""
case _ => ParserConstant.Space
}
ParserConstant.Space + prefix + prefixForValue + asString(value) + ParserConstant.NewLine
Expand Down Expand Up @@ -103,7 +103,7 @@ case class YamlParser(permissive: Boolean) extends Parser {
} else {
value match {
case valueStr: String => valueStr
case valueList: java.util.List[String] =>
case valueList: java.util.List[_] =>
itemSeparator + valueList.asScala.mkString(itemSeparator)
case _ => value.toString
}
Expand Down

0 comments on commit e7761af

Please sign in to comment.