after adding this flag to scalacoptions :
"-Xlint:option-implicit"
I don't understand why am I getting this and how to resolve it
Error:(47, 34) Suspicious application of an implicit view (
scala.Predef.Long2long
) in the argument toOption.apply
.val x: Long = Option[Long](timestamp()).getOrElse(1L)
The code looks like this
val x: Long = Option[Long](timestamp()).getOrElse(1L)
the function timestamp can be null or return java Long