Lines Matching refs:newMethod
468 MethodAPI newMethod = methodArr[methodIdx];
469 if (oldMethod.compareTo(newMethod) == 0) {
494 MethodAPI newMethod = (MethodAPI)(newClass.methods_.get(startNew));
499 newMethod.inheritedFrom_ == null) {
502 compareMethods(oldMethod, newMethod, classDiff);
520 MethodAPI newMethod = (MethodAPI)(iter.next());
522 if (newMethod.inheritedFrom_ != null)
529 if (newMethod.compareTo(oldMethod) == 0) {
535 // int idx = Collections.binarySearch(oldClass.methods_, newMethod);
538 int startOld = oldClass.methods_.indexOf(newMethod);
539 int endOld = oldClass.methods_.lastIndexOf(newMethod);
540 int startNew = newClass.methods_.indexOf(newMethod);
541 int endNew = newClass.methods_.lastIndexOf(newMethod);
549 System.out.println(" Method " + newMethod.name_ +
550 "(" + newMethod.getSignature() + ") was added");
551 classDiff.methodsAdded.add(newMethod);
563 public boolean compareMethods(MethodAPI oldMethod, MethodAPI newMethod, ClassDiff classDiff) {
568 methodDiff.newType_ = newMethod.returnType_;
569 if (oldMethod.returnType_.compareTo(newMethod.returnType_) != 0) {
574 String newSig = newMethod.getSignature();
581 int inh = changedInheritance(oldMethod.inheritedFrom_, newMethod.inheritedFrom_);
585 methodDiff.addModifiersChange("Method was locally defined, but is now inherited from " + linkToClass(newMethod, true) + ".");
586 methodDiff.inheritedFrom_ = newMethod.inheritedFrom_;
591 linkToClass(oldMethod, false) + ", and is now inherited from " + linkToClass(newMethod, true) + ".");
592 methodDiff.inheritedFrom_ = newMethod.inheritedFrom_;
595 if (oldMethod.isAbstract_ != newMethod.isAbstract_) {
606 oldMethod.isNative_ != newMethod.isNative_) {
617 oldMethod.isSynchronized_ != newMethod.isSynchronized_) {
629 methodDiff.newExceptions_ = newMethod.exceptions_;
630 if (oldMethod.exceptions_.compareTo(newMethod.exceptions_) != 0) {
635 if (docChanged(oldMethod.doc_, newMethod.doc_)) {
641 String link2 = "<a href=\"" + fqName + HTMLReportGenerator.reportFileExt + "#" + fqName + "." + newMethod.name_ + "_changed(" + sig + ")\" class=\"hiddenlink\">";
642 String id = pkgDiff.name_ + "." + classDiff.name_ + ".dmethod." + newMethod.name_ + "(" + HTMLReportGenerator.simpleName(sig) + ")";
644 link2 + HTMLReportGenerator.simpleName(methodDiff.newType_) + " <b>" + newMethod.name_ + "(" + HTMLReportGenerator.simpleName(sig) + ")</b></a>";
645 methodDiff.documentationChange_ = Diff.saveDocDiffs(pkgDiff.name_, classDiff.name_, oldMethod.doc_, newMethod.doc_, id, title);
650 String modifiersChange = oldMethod.modifiers_.diff(newMethod.modifiers_);
654 System.out.println("JDiff: warning: change from deprecated to undeprecated for method " + classDiff.name_ + "." + newMethod.name_);
663 System.out.println(" Method " + newMethod.name_ +
666 newMethod.returnType_ + "(" + newSig + ")");