From bd31bde3c30d618b966b2b60abec9f668bfe682e Mon Sep 17 00:00:00 2001 From: tfennelly Date: Tue, 24 Feb 2015 08:01:44 +0000 Subject: [PATCH] Fix Queue.Item.id and Run.getQueueId javadoc --- core/src/main/java/hudson/model/Queue.java | 12 ++++++++---- core/src/main/java/hudson/model/Run.java | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/hudson/model/Queue.java b/core/src/main/java/hudson/model/Queue.java index 6c5f4678b6..1ca6f1c45f 100644 --- a/core/src/main/java/hudson/model/Queue.java +++ b/core/src/main/java/hudson/model/Queue.java @@ -1505,12 +1505,16 @@ public class Queue extends ResourceController implements Saveable { */ @ExportedBean(defaultVisibility = 999) public static abstract class Item extends Actionable { + + private final long id; + /** - * VM-wide unique ID that tracks the {@link Task} as it moves through different stages - * in the queue (each represented by different subtypes of {@link Item}. + * Unique ID (per master) that tracks the {@link Task} as it moves through different stages + * in the queue (each represented by different subtypes of {@link Item} and into any subsequent + * {@link Run} instance (see {@link Run#getQueueId()}). + * @return + * @since TODO */ - private final long id; - @Exported public long getId() { return id; diff --git a/core/src/main/java/hudson/model/Run.java b/core/src/main/java/hudson/model/Run.java index 70189a8854..a45f8aeabb 100644 --- a/core/src/main/java/hudson/model/Run.java +++ b/core/src/main/java/hudson/model/Run.java @@ -139,6 +139,7 @@ public abstract class Run ,RunT extends Run,RunT extends Run,RunT extends Run * Mapped from the {@link Queue.Item#getId()}. * @param queueId The queue item ID. - * @since TODO */ @Restricted(NoExternalUse.class) public void setQueueId(long queueId) { -- GitLab