Skip to content

Commit

Permalink
Fixed a small regression in JENKINS-30191
Browse files Browse the repository at this point in the history
While refactoring I introduced a new marker interface to mark the mode
as having the opportunity to support 'newest'. I forgot to implment said interface
for the Poll subscribe mode.
  • Loading branch information
MadsNielsen committed Sep 14, 2015
1 parent 3d7b860 commit 1ba20cf
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -42,7 +42,7 @@
*
* @author Mads
*/
public class PollSubscribeMode extends PollingMode implements BaselineCreationEnabled {
public class PollSubscribeMode extends PollingMode implements BaselineCreationEnabled, NewestFeatureToggle {

private List<ComponentSelectionCriteriaRequirement> componentsToMonitor = new ArrayList<ComponentSelectionCriteriaRequirement>();
private List<JobNameRequirement> jobsToMonitor = new ArrayList<JobNameRequirement>();
Expand All @@ -63,6 +63,7 @@ public void setNewest(boolean newest) {
this.newest = newest;
}

@Override
public boolean isNewest() {
return newest;
}
Expand Down

0 comments on commit 1ba20cf

Please sign in to comment.