Skip to content
Snippets Groups Projects
Commit 06b1e551 authored by Florian Angerer's avatar Florian Angerer
Browse files

Consistency cleanup: renamed "getPkg()" to "getPackage()".

parent 3ece154d
No related branches found
No related tags found
No related merge requests found
Showing with 10 additions and 10 deletions
......@@ -37,8 +37,8 @@ public abstract class Problem {
this.location = Objects.requireNonNull(location);
}
public RPackage getPkg() {
return pkgTestRun.getPkg();
public RPackage getPackage() {
return pkgTestRun.getPackage();
}
public RPackageTestRun getPackageTestRun() {
......
......@@ -36,7 +36,7 @@ public class RPackageTestRun {
this.nr = nr;
}
public RPackage getPkg() {
public RPackage getPackage() {
return pkg;
}
......
......@@ -71,13 +71,13 @@ public class InstallationProblemDetector extends LineDetector {
@Override
public String toString() {
return String.format("%s: Installation failed in '%s'; message: %s", getLocation(), getPkg().getName(),
return String.format("%s: Installation failed in '%s'; message: %s", getLocation(), getPackage().getName(),
message);
}
@Override
public String getSummary() {
return String.format("Installation failed in pacakge '%s'", getPkg().getName());
return String.format("Installation failed in package '%s'", getPackage().getName());
}
@Override
......
......@@ -88,7 +88,7 @@ public class RErrorDetector extends LineDetector {
@Override
public String toString() {
return String.format("%s: RError in '%s' (msg = '%s'), args)", getLocation(), getPkg().getName(), message);
return String.format("%s: RError in '%s' (msg = '%s'), args)", getLocation(), getPackage().getName(), message);
}
@Override
......
......@@ -79,12 +79,12 @@ public class SegfaultDetector extends LineDetector {
@Override
public String toString() {
return getLocation() + ": SIGSEGV in " + getPkg();
return getLocation() + ": SIGSEGV in " + getPackage();
}
@Override
public String getSummary() {
return ": SIGSEGV in " + getPkg();
return ": SIGSEGV in " + getPackage();
}
@Override
......
......@@ -39,7 +39,7 @@ public abstract class AbstractDumper {
}
protected Map<RPackage, List<Problem>> groupByPkg(Collection<Problem> problems) {
return problems.stream().collect(Collectors.groupingBy(p -> p.getPackageTestRun().getPkg()));
return problems.stream().collect(Collectors.groupingBy(p -> p.getPackageTestRun().getPackage()));
}
}
......@@ -277,7 +277,7 @@ public class LogFileParser {
}
private String getPkgName() {
return pkg.getPkg().getName();
return pkg.getPackage().getName();
}
private static boolean parseStatus(String substring) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment