Reports and replaces toString
with map(_.toString).getOrElse("")
.
map(_.toString).getOrElse("")
will prevent from getting string "Some(a)"
instead of expected string "a"
.
Example:
+
+ Option(a).toString
+
+After the quick-fix is applied:
+
+ Option(a).map(_.toString).getOrElse("")
+
+
+
+