Home | History | Annotate | Download | only in jdiff

Lines Matching refs:oldPkg

56             PackageAPI oldPkg = (PackageAPI)(iter.next());
59 int idx = Collections.binarySearch(newAPI.packages_, oldPkg);
65 int existsNew = newAPI.packages_.indexOf(oldPkg);
69 differs += 2.0 * comparePackages(oldPkg, (PackageAPI)(newAPI.packages_.get(existsNew)));
72 System.out.println("Package " + oldPkg.name_ + " was removed");
73 apiDiff.packagesRemoved.add(oldPkg);
80 differs += 2.0 * comparePackages(oldPkg, (PackageAPI)(newAPI.packages_.get(idx)));
150 public double comparePackages(PackageAPI oldPkg, PackageAPI newPkg) {
152 System.out.println("Comparing old package " + oldPkg.name_ +
154 pkgDiff = new PackageDiff(oldPkg.name_);
157 Collections.sort(oldPkg.classes_);
161 Iterator iter = oldPkg.classes_.iterator();
194 int idx = Collections.binarySearch(oldPkg.classes_, newClass);
197 int existsOld = oldPkg.classes_.indexOf(newClass);
214 if (docChanged(oldPkg.doc_, newPkg.doc_)) {
215 String link = "<a href=\"pkg_" + oldPkg.name_ + HTMLReportGenerator.reportFileExt + "\" class=\"hiddenlink\">";
216 String id = oldPkg.name_ + "!package";
217 String title = link + "Package <b>" + oldPkg.name_ + "</b></a>";
218 pkgDiff.documentationChange_ = Diff.saveDocDiffs(pkgDiff.name_, null, oldPkg.doc_, newPkg.doc_, id, title);
226 Long denom = new Long(oldPkg.classes_.size() + newPkg.classes_.size());
229 System.out.println("Warning: no classes found in the package " + oldPkg.name_);