Lines Matching refs:oldMethod
463 MethodAPI oldMethod = (MethodAPI)(iter.next());
469 if (oldMethod.compareTo(newMethod) == 0) {
479 // int idx = Collections.binarySearch(newClass.methods_, oldMethod);
487 int startOld = oldClass.methods_.indexOf(oldMethod);
488 int endOld = oldClass.methods_.lastIndexOf(oldMethod);
489 int startNew = newClass.methods_.indexOf(oldMethod);
490 int endNew = newClass.methods_.lastIndexOf(oldMethod);
498 if (oldMethod.inheritedFrom_ == null ||
502 compareMethods(oldMethod, newMethod, classDiff);
505 } else if (oldMethod.inheritedFrom_ == null) {
508 System.out.println(" Method " + oldMethod.name_ +
509 "(" + oldMethod.getSignature() +
511 classDiff.methodsRemoved.add(oldMethod);
528 MethodAPI oldMethod = methodArr[methodIdx];
529 if (newMethod.compareTo(oldMethod) == 0) {
563 public boolean compareMethods(MethodAPI oldMethod, MethodAPI newMethod, ClassDiff classDiff) {
564 MemberDiff methodDiff = new MemberDiff(oldMethod.name_);
567 methodDiff.oldType_ = oldMethod.returnType_;
569 if (oldMethod.returnType_.compareTo(newMethod.returnType_) != 0) {
573 String oldSig = oldMethod.getSignature();
581 int inh = changedInheritance(oldMethod.inheritedFrom_, newMethod.inheritedFrom_);
588 methodDiff.addModifiersChange("Method was inherited from " + linkToClass(oldMethod, false) + ", but is now defined locally.");
591 linkToClass(oldMethod, false) + ", and is now inherited from " + linkToClass(newMethod, true) + ".");
595 if (oldMethod.isAbstract_ != newMethod.isAbstract_) {
597 if (oldMethod.isAbstract_)
606 oldMethod.isNative_ != newMethod.isNative_) {
608 if (oldMethod.isNative_)
617 oldMethod.isSynchronized_ != newMethod.isSynchronized_) {
619 if (oldMethod.isSynchronized_)
628 methodDiff.oldExceptions_ = oldMethod.exceptions_;
630 if (oldMethod.exceptions_.compareTo(newMethod.exceptions_) != 0) {
635 if (docChanged(oldMethod.doc_, newMethod.doc_)) {
645 methodDiff.documentationChange_ = Diff.saveDocDiffs(pkgDiff.name_, classDiff.name_, oldMethod.doc_, newMethod.doc_, id, title);
650 String modifiersChange = oldMethod.modifiers_.diff(newMethod.modifiers_);
665 oldMethod.returnType_ + "(" + oldSig + "), new: " +