[JENKINS-7280] Touch-ups.

This commit is contained in:
Jesse Glick committed 2013-05-23 11:05:40 -04:00
1 parent 0c248480c3
commit 53cbf595ed
4 files changed
+12 -4

No files matched your search

@@ -38,7 +38,8 @@ import org.kohsuke.stapler.QueryParameter;
public class RunParameterDefinition extends SimpleParameterDefinition {
/**
* Constants that control how Run Parameter is filtered
* Constants that control how Run Parameter is filtered.
* @since 1.517
*/
public enum RunParameterFilter {
ALL,
@@ -59,6 +60,9 @@ public class RunParameterDefinition extends SimpleParameterDefinition {
private final String runId;
private final RunParameterFilter filter;
/**
* @since 1.517
*/
@DataBoundConstructor
public RunParameterDefinition(String name, String projectName, String description, RunParameterFilter filter) {
super(name, description);
@@ -103,6 +107,7 @@ public class RunParameterDefinition extends SimpleParameterDefinition {
/**
* @return The current filter value, if filter is null, returns ALL
* @since 1.517
*/
public RunParameterFilter getFilter() {
// if filter is null, default to RunParameterFilter.ALL
+2 -2
View File
@@ -241,9 +241,9 @@ public class RunList<R extends Run> extends AbstractList<R> {
}
/**
* Filter the list to builds >= threshold.
* Filter the list to builds above threshold.
*
* @since 1.516
* @since 1.517
*/
public RunList<R> overThresholdOnly(final Result threshold) {
return filter(new Predicate<R>() {