@Override public MethodBinding findOriginalInheritedMethod(MethodBinding inheritedMethod) { return this.closestMatch == null ? this : this.closestMatch.findOriginalInheritedMethod(inheritedMethod); } @Override
@Override public MethodBinding findOriginalInheritedMethod(MethodBinding inheritedMethod) { return this.closestMatch == null ? this : this.closestMatch.findOriginalInheritedMethod(inheritedMethod); } @Override
@Override public MethodBinding findOriginalInheritedMethod(MethodBinding inheritedMethod) { return this.closestMatch == null ? this : this.closestMatch.findOriginalInheritedMethod(inheritedMethod); } @Override
@Override public MethodBinding findOriginalInheritedMethod(MethodBinding inheritedMethod) { return this.closestMatch == null ? this : this.closestMatch.findOriginalInheritedMethod(inheritedMethod); } @Override
static boolean areMethodsCompatible(MethodBinding one, MethodBinding two, LookupEnvironment environment) { // use the original methods to test compatibility, but do not check visibility, etc one = one.original(); two = one.findOriginalInheritedMethod(two); if (two == null) return false; // method's declaringClass does not inherit from inheritedMethod's return isParameterSubsignature(one, two, environment); } boolean areReturnTypesCompatible(MethodBinding one, MethodBinding two) {
static boolean areMethodsCompatible(MethodBinding one, MethodBinding two, LookupEnvironment environment) { // use the original methods to test compatibility, but do not check visibility, etc one = one.original(); two = one.findOriginalInheritedMethod(two); if (two == null) return false; // method's declaringClass does not inherit from inheritedMethod's return isParameterSubsignature(one, two, environment); } boolean areReturnTypesCompatible(MethodBinding one, MethodBinding two) {
boolean areMethodsCompatible(MethodBinding one, MethodBinding two) { // use the original methods to test compatibility, but do not check visibility, etc one = one.original(); two = one.findOriginalInheritedMethod(two); if (two == null) return false; // method's declaringClass does not inherit from inheritedMethod's return isParameterSubsignature(one, two); } boolean areParametersEqual(MethodBinding one, MethodBinding two) {
boolean areMethodsCompatible(MethodBinding one, MethodBinding two) { // use the original methods to test compatibility, but do not check visibility, etc one = one.original(); two = one.findOriginalInheritedMethod(two); if (two == null) return false; // method's declaringClass does not inherit from inheritedMethod's return isParameterSubsignature(one, two); } boolean areParametersEqual(MethodBinding one, MethodBinding two) {
static boolean areMethodsCompatible(MethodBinding one, MethodBinding two, LookupEnvironment environment) { // use the original methods to test compatibility, but do not check visibility, etc one = one.original(); two = one.findOriginalInheritedMethod(two); if (two == null) return false; // method's declaringClass does not inherit from inheritedMethod's return isParameterSubsignature(one, two, environment); } boolean areReturnTypesCompatible(MethodBinding one, MethodBinding two) {
static boolean areMethodsCompatible(MethodBinding one, MethodBinding two, LookupEnvironment environment) { // use the original methods to test compatibility, but do not check visibility, etc one = one.original(); two = one.findOriginalInheritedMethod(two); if (two == null) return false; // method's declaringClass does not inherit from inheritedMethod's return isParameterSubsignature(one, two, environment); } boolean areReturnTypesCompatible(MethodBinding one, MethodBinding two) {
static boolean areMethodsCompatible(MethodBinding one, MethodBinding two, LookupEnvironment environment) { // use the original methods to test compatibility, but do not check visibility, etc one = one.original(); two = one.findOriginalInheritedMethod(two); if (two == null) return false; // method's declaringClass does not inherit from inheritedMethod's return isParameterSubsignature(one, two, environment); } boolean areReturnTypesCompatible(MethodBinding one, MethodBinding two) {
static boolean areMethodsCompatible(MethodBinding one, MethodBinding two, LookupEnvironment environment) { // use the original methods to test compatibility, but do not check visibility, etc one = one.original(); two = one.findOriginalInheritedMethod(two); if (two == null) return false; // method's declaringClass does not inherit from inheritedMethod's return isParameterSubsignature(one, two, environment); } boolean areReturnTypesCompatible(MethodBinding one, MethodBinding two) {
static boolean areMethodsCompatible(MethodBinding one, MethodBinding two, LookupEnvironment environment) { // use the original methods to test compatibility, but do not check visibility, etc one = one.original(); two = one.findOriginalInheritedMethod(two); if (two == null) return false; // method's declaringClass does not inherit from inheritedMethod's return isParameterSubsignature(one, two, environment); } boolean areReturnTypesCompatible(MethodBinding one, MethodBinding two) {
@Override public boolean isMethodSubsignature(MethodBinding method, MethodBinding inheritedMethod) { if (!org.eclipse.jdt.core.compiler.CharOperation.equals(method.selector, inheritedMethod.selector)) return false; // need to switch back to the original if the method is from a ParameterizedType if (method.declaringClass.isParameterizedType()) method = method.original(); MethodBinding inheritedOriginal = method.findOriginalInheritedMethod(inheritedMethod); return isParameterSubsignature(method, inheritedOriginal == null ? inheritedMethod : inheritedOriginal); } boolean isUnsafeReturnTypeOverride(MethodBinding currentMethod, MethodBinding inheritedMethod) {
public boolean isMethodSubsignature(MethodBinding method, MethodBinding inheritedMethod) { if (!org.eclipse.jdt.core.compiler.CharOperation.equals(method.selector, inheritedMethod.selector)) return false; // need to switch back to the original if the method is from a ParameterizedType if (method.declaringClass.isParameterizedType()) method = method.original(); MethodBinding inheritedOriginal = method.findOriginalInheritedMethod(inheritedMethod); return isParameterSubsignature(method, inheritedOriginal == null ? inheritedMethod : inheritedOriginal); } boolean isParameterSubsignature(MethodBinding method, MethodBinding inheritedMethod) {
public boolean isMethodSubsignature(MethodBinding method, MethodBinding inheritedMethod) { if (!org.eclipse.jdt.core.compiler.CharOperation.equals(method.selector, inheritedMethod.selector)) return false; // need to switch back to the original if the method is from a ParameterizedType if (method.declaringClass.isParameterizedType()) method = method.original(); MethodBinding inheritedOriginal = method.findOriginalInheritedMethod(inheritedMethod); return isParameterSubsignature(method, inheritedOriginal == null ? inheritedMethod : inheritedOriginal); } boolean isUnsafeReturnTypeOverride(MethodBinding currentMethod, MethodBinding inheritedMethod) {
public boolean isMethodSubsignature(MethodBinding method, MethodBinding inheritedMethod) { if (!org.eclipse.jdt.core.compiler.CharOperation.equals(method.selector, inheritedMethod.selector)) return false; // need to switch back to the original if the method is from a ParameterizedType if (method.declaringClass.isParameterizedType()) method = method.original(); MethodBinding inheritedOriginal = method.findOriginalInheritedMethod(inheritedMethod); return isParameterSubsignature(method, inheritedOriginal == null ? inheritedMethod : inheritedOriginal); } boolean isUnsafeReturnTypeOverride(MethodBinding currentMethod, MethodBinding inheritedMethod) {
public boolean isMethodSubsignature(MethodBinding method, MethodBinding inheritedMethod) { if (!org.eclipse.jdt.core.compiler.CharOperation.equals(method.selector, inheritedMethod.selector)) return false; // need to switch back to the original if the method is from a ParameterizedType if (method.declaringClass.isParameterizedType()) method = method.original(); MethodBinding inheritedOriginal = method.findOriginalInheritedMethod(inheritedMethod); return isParameterSubsignature(method, inheritedOriginal == null ? inheritedMethod : inheritedOriginal); } boolean isUnsafeReturnTypeOverride(MethodBinding currentMethod, MethodBinding inheritedMethod) {
public boolean isMethodSubsignature(MethodBinding method, MethodBinding inheritedMethod) { if (!org.eclipse.jdt.core.compiler.CharOperation.equals(method.selector, inheritedMethod.selector)) return false; // need to switch back to the original if the method is from a ParameterizedType if (method.declaringClass.isParameterizedType()) method = method.original(); MethodBinding inheritedOriginal = method.findOriginalInheritedMethod(inheritedMethod); return isParameterSubsignature(method, inheritedOriginal == null ? inheritedMethod : inheritedOriginal); } boolean isUnsafeReturnTypeOverride(MethodBinding currentMethod, MethodBinding inheritedMethod) {
public boolean isMethodSubsignature(MethodBinding method, MethodBinding inheritedMethod) { if (!org.eclipse.jdt.core.compiler.CharOperation.equals(method.selector, inheritedMethod.selector)) return false; // need to switch back to the original if the method is from a ParameterizedType if (method.declaringClass.isParameterizedType()) method = method.original(); MethodBinding inheritedOriginal = method.findOriginalInheritedMethod(inheritedMethod); return isParameterSubsignature(method, inheritedOriginal == null ? inheritedMethod : inheritedOriginal); } boolean isUnsafeReturnTypeOverride(MethodBinding currentMethod, MethodBinding inheritedMethod) {