Fill in since annotations (#11105)
Changelog Drafter / update_draft_release (push) Waiting to run Details
Changelog Drafter / jenkins_io_draft (push) Waiting to run Details
Label conflicting PRs / main (push) Waiting to run Details

Co-authored-by: timja <21194782+timja@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2025-09-28 19:26:50 +02:00 committed by GitHub
parent a7a7a1db2a
commit 097a5b2f34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1355,7 +1355,7 @@ public class Queue extends ResourceController implements Saveable {
*
* @param runnable the operation to perform.
* @return {@code true} if the lock was acquired within the timeout and the operation was performed.
* @since TODO
* @since 2.529
*/
public static boolean tryWithLock(Runnable runnable, Duration timeout) throws InterruptedException {
final Jenkins jenkins = Jenkins.getInstanceOrNull();
@ -1461,7 +1461,7 @@ public class Queue extends ResourceController implements Saveable {
*
* @param runnable the operation to perform.
* @return {@code true} if the lock was acquired within the timeout and the operation was performed.
* @since TODO
* @since 2.529
*/
protected boolean _tryWithLock(Runnable runnable, Duration timeout) throws InterruptedException {
if (lock.tryLock(timeout.toNanos(), TimeUnit.NANOSECONDS)) {

View File

@ -154,7 +154,7 @@ public class Nodes implements PersistenceRoot {
* @param node the new node.
* @return True if the node was added. False otherwise (indicating a node with the given name already exists)
* @throws IOException if the list of nodes could not be persisted.
* @since TODO
* @since 2.529
*/
public boolean addNodeIfAbsent(final @NonNull Node node) throws IOException {
if (ENFORCE_NAME_RESTRICTIONS) {