Lines Matching refs:mInfo
836 public boolean isConsistent(MethodInfo mInfo) { in isConsistent() argument
838 if (!mReturnType.isTypeVariable() && !mInfo.mReturnType.isTypeVariable()) { in isConsistent()
839 if (!mReturnType.equals(mInfo.mReturnType) || in isConsistent()
840 mReturnType.dimension() != mInfo.mReturnType.dimension()) { in isConsistent()
843 } else if (!mReturnType.isTypeVariable() && mInfo.mReturnType.isTypeVariable()) { in isConsistent()
844 List<ClassInfo> constraints = mInfo.resolveConstraints(mInfo.mReturnType); in isConsistent()
850 } else if (mReturnType.isTypeVariable() && !mInfo.mReturnType.isTypeVariable()) { in isConsistent()
857 List<ClassInfo> currentConstraints = mInfo.resolveConstraints(mReturnType); in isConsistent()
858 List<ClassInfo> newConstraints = mInfo.resolveConstraints(mInfo.mReturnType); in isConsistent()
866 Errors.error(Errors.CHANGED_TYPE, mInfo.position(), "Method " in isConsistent()
867 + mInfo.prettyQualifiedSignature() + " has changed return type from " + mReturnType in isConsistent()
868 + " to " + mInfo.mReturnType); in isConsistent()
871 if (mIsAbstract != mInfo.mIsAbstract) { in isConsistent()
873 Errors.error(Errors.CHANGED_ABSTRACT, mInfo.position(), "Method " in isConsistent()
874 + mInfo.prettyQualifiedSignature() + " has changed 'abstract' qualifier"); in isConsistent()
877 if (mIsNative != mInfo.mIsNative) { in isConsistent()
879 Errors.error(Errors.CHANGED_NATIVE, mInfo.position(), "Method " in isConsistent()
880 + mInfo.prettyQualifiedSignature() + " has changed 'native' qualifier"); in isConsistent()
888 if (!isEffectivelyFinal() && mInfo.isEffectivelyFinal()) { in isConsistent()
890 Errors.error(Errors.ADDED_FINAL, mInfo.position(), "Method " in isConsistent()
891 + mInfo.prettyQualifiedSignature() + " has added 'final' qualifier"); in isConsistent()
892 } else if (isEffectivelyFinal() && !mInfo.isEffectivelyFinal()) { in isConsistent()
894 Errors.error(Errors.REMOVED_FINAL, mInfo.position(), "Method " in isConsistent()
895 + mInfo.prettyQualifiedSignature() + " has removed 'final' qualifier"); in isConsistent()
899 if (mIsStatic != mInfo.mIsStatic) { in isConsistent()
901 Errors.error(Errors.CHANGED_STATIC, mInfo.position(), "Method " in isConsistent()
902 + mInfo.prettyQualifiedSignature() + " has changed 'static' qualifier"); in isConsistent()
905 if (!scope().equals(mInfo.scope())) { in isConsistent()
907 Errors.error(Errors.CHANGED_SCOPE, mInfo.position(), "Method " in isConsistent()
908 + mInfo.prettyQualifiedSignature() + " changed scope from " + scope() in isConsistent()
909 + " to " + mInfo.scope()); in isConsistent()
912 if (!isDeprecated() == mInfo.isDeprecated()) { in isConsistent()
913 Errors.error(Errors.CHANGED_DEPRECATED, mInfo.position(), "Method " in isConsistent()
914 + mInfo.prettyQualifiedSignature() + " has changed deprecation state " + isDeprecated() in isConsistent()
915 + " --> " + mInfo.isDeprecated()); in isConsistent()
931 if (!mInfo.throwsException(exception)) { in isConsistent()
934 Errors.error(Errors.CHANGED_THROWS, mInfo.position(), "Method " in isConsistent()
935 + mInfo.prettyQualifiedSignature() + " no longer throws exception " in isConsistent()
942 for (ClassInfo exec : mInfo.thrownExceptions()) { in isConsistent()
946 Errors.error(Errors.CHANGED_THROWS, mInfo.position(), "Method " in isConsistent()
947 + mInfo.prettyQualifiedSignature() + " added thrown exception " in isConsistent()