Completion doesn't work on annotation of type argument
Given the following class in a project with jdt.annotations on the build path:
package bugs;
import java.util.*;
import java.util.stream.Collectors;
public class Completion {
Map<Integer,@NonNull String> get1() {
return null;
}
Map<Integer,@NonNull String> get() {
return null;
}
void test(String s) {
if (s.toLowerCase() instanceof String) {
List<@NonN String> sList = null;
}
}
}
None of the references to @NonNull
can be completed with import added.
At the root of the class (i.e., in the place of a field type) completion works.