Lines 334-340
Link Here
|
334 |
// verify closest match if pattern was bound |
334 |
// verify closest match if pattern was bound |
335 |
// (see bug 70827) |
335 |
// (see bug 70827) |
336 |
if (focus != null && focus.getElementType() == IJavaElement.METHOD) { |
336 |
if (focus != null && focus.getElementType() == IJavaElement.METHOD) { |
337 |
if (methodBinding != null) { |
337 |
if (methodBinding != null && methodBinding.declaringClass != null) { |
338 |
boolean isPrivate = Flags.isPrivate(((IMethod) focus).getFlags()); |
338 |
boolean isPrivate = Flags.isPrivate(((IMethod) focus).getFlags()); |
339 |
if (isPrivate && !CharOperation.equals(methodBinding.declaringClass.sourceName, focus.getParent().getElementName().toCharArray())) { |
339 |
if (isPrivate && !CharOperation.equals(methodBinding.declaringClass.sourceName, focus.getParent().getElementName().toCharArray())) { |
340 |
return; // finally the match was not possible |
340 |
return; // finally the match was not possible |