Hello all,
We have encountered a test failure while working with the TestMode.FULLY_QUALIFIED. We have some test cases where we look at the presence of annotations in the method parameters and the return types. To achieve this, we are using the findSuperMethods() from the PsiMethod interface to get the super methods to look at the super method's annotations.
For the test case, we have a Java class, where we have an interface with a method that has @NonNull annotation. This interface is implemented by a class where the overriden method doesn't have the annotation. The test case is supposed to throw a lint warning.
As the current test file is a Java file, the PsiMethod's implementation is calling into PsiSuperMethodImplUtil.java where the findSuperMethods(*) call is working as expected in all the cases except when the TestMod is FULLY_QUALIFIED. I tried to trace it till findSuperMethodSignatures(*) and I got an empty array from the SuperMethodsSearch.search() call when the TestMode is FULLY_QUALIFIED.
Can I get some help with this.
Thanks
Dayakar