Skip to content

Commit

Permalink
[FIXED JENKINS-18196] reduce visibility of getEstimatedDurationCandid…
Browse files Browse the repository at this point in the history
…ates to protected

(cherry picked from commit e77441f)
  • Loading branch information
kutzi authored and olivergondza committed Sep 13, 2013
1 parent 6244e51 commit 0b5f6b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/Job.java
Expand Up @@ -885,7 +885,7 @@ public List<RunT> getLastBuildsOverThreshold(int numberOfBuilds, Result threshol
* In any case it will not go more than 6 builds into the past to avoid costly build loading.
*/
@SuppressWarnings("unchecked")
public List<RunT> getEstimatedDurationCandidates() {
protected List<RunT> getEstimatedDurationCandidates() {
List<RunT> candidates = new ArrayList<RunT>(3);
RunT lastSuccessful = (RunT) Permalink.LAST_SUCCESSFUL_BUILD.resolve(this);
int lastSuccessfulNumber = -1;
Expand Down
5 changes: 5 additions & 0 deletions maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
Expand Up @@ -1103,6 +1103,11 @@ private List<Queue.Item> filter(Collection<Queue.Item> base) {
public String getUserConfiguredGoals() {
return goals;
}

@Override
protected List<MavenModuleSetBuild> getEstimatedDurationCandidates() {
return super.getEstimatedDurationCandidates();
}

/*package*/ void reconfigure(PomInfo rootPom) throws IOException {
if(this.rootModule!=null && this.rootModule.equals(rootPom.name))
Expand Down

0 comments on commit 0b5f6b2

Please sign in to comment.