In the following example, the import declaration is not crossed out, even though depr is deprecated. If we instead move the @deprecated annotation to the other overload, the import declaration is crossed out.
class A {
import S.depr
depr(1)
}
object S {
@deprecated("", "")
def depr(x: Int) = x
def depr(x: Int, y: Int) = x
}
Leave a comment
on 2016-02-09 07:21 *
By Simon Schäfer
This JEP says that for Java static imports shouldn't be crossed out at all: http://openjdk.java.net/jeps/211
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|