Community
Participate
Working Groups
To filter matches in Javadoc in the new search we need to know if the match is inside code or Javadoc.
Philippe, can we add this early M9 ?
Fair request.
Would adding isJavaDocReference() on FieldReferenceMatch, MethodReferenceMatch and TypeReferenceMatch suit your needs?
I think yes. Thomas, any additional comments.
Can we abstract this out somehow (i.e. I'd rather not do 3 instance checks ored together)?
Ok I will factor it to JavaSearchMatch.isJavaDocReference() and this will return false for the declaration matches.
After talking to Philippe, a better name is insideDocComment().
Added JavaSearchMatch.insideDocComment() and added tests JavaSearchTests.testFieldReferenceInOutDocComment(), testMethodReferenceInOutDocComment() and testTypeReferenceInOutDocComment().
*** Bug 51357 has been marked as a duplicate of this bug. ***
Verified for 3.0 M9 with build I200405180816.
Note that this does not work for package references, but I'll open a new bug to address this issue...
See bug 62697 for package references matches problem...