Consider the following:
package p;
import static p.A.foo;
class A {
public static Object foo(Object o) {
return null;
}
@Deprecated
public static Object foo(String s) {
return null;
}
}
When the last overload is deprecated, the import displays deprecation highlighting, even when the deprecated member is not used.
Real world example: import static org.assertj.core.api.Assertions.assertThat;
Consider the following:
When the last overload is deprecated, the import displays deprecation highlighting, even when the deprecated member is not used.
Real world example:
import static org.assertj.core.api.Assertions.assertThat;