提交 c15791c0 编写于 作者: K Kohsuke Kawaguchi

doc improvements

上级 6043cdc9
......@@ -527,6 +527,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
/**
* Gets the read-only view of the recent builds.
*
* @since 1.LAZYLOAD
*/
@Exported(name="builds")
public RunList<RunT> getNewBuilds() {
......
......@@ -65,7 +65,7 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
/**
* @deprecated
* @deprecated as of 1.LAZYLOAD
* Use {@link #RunMap(File, Constructor)}.
*/
public RunMap() {
......@@ -144,7 +144,7 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
}
/**
* @deprecated
* @deprecated as of 1.LAZYLOAD
* Use {@link ReverseComparator}
*/
public static final Comparator<Comparable> COMPARATOR = new Comparator<Comparable>() {
......@@ -227,7 +227,7 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
* Job that owns this map.
* @param cons
* Used to create new instance of {@link Run}.
* @deprecated
* @deprecated as of 1.LAZYLOAD
* Use {@link #RunMap(File, Constructor)}
*/
public void load(Job job, Constructor<R> cons) {
......
......@@ -333,6 +333,8 @@ public class Iterators {
/**
* Returns the elements in the base iterator until it hits any element that doesn't satisfy the filter.
* Then the rest of the elements in the base iterator gets ignored.
*
* @since 1.LAZYLOAD
*/
public static <T> Iterator<T> limit(final Iterator<? extends T> base, final CountingPredicate<? super T> filter) {
return new Iterator<T>() {
......
......@@ -48,8 +48,6 @@ import java.util.List;
/**
* {@link List} of {@link Run}s, sorted in the descending date order.
*
* TODO: this should be immutable
*
* @author Kohsuke Kawaguchi
*/
public class RunList<R extends Run> extends AbstractList<R> {
......@@ -105,7 +103,7 @@ public class RunList<R extends Run> extends AbstractList<R> {
}
/**
* @deprecated
* @deprecated as of 1.LAZYLOAD
* {@link RunList}, despite its name, should be really used as {@link Iterable}, not as {@link List}.
*/
@Override
......@@ -122,7 +120,7 @@ public class RunList<R extends Run> extends AbstractList<R> {
}
/**
* @deprecated
* @deprecated as of 1.LAZYLOAD
* {@link RunList}, despite its name, should be really used as {@link Iterable}, not as {@link List}.
*/
@Override
......
......@@ -92,6 +92,7 @@ import static jenkins.model.lazy.Boundary.*;
* updating {@link #byNumber} and {@link #byId}.
*
* @author Kohsuke Kawaguchi
* @since 1.LAZYLOAD
*/
public abstract class AbstractLazyLoadRunMap<R> extends AbstractMap<Integer,R> implements SortedMap<Integer,R> {
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册