mirror of https://github.com/jenkinsci/jenkins.git
Fill in since annotations (#11105)
Co-authored-by: timja <21194782+timja@users.noreply.github.com>
This commit is contained in:
parent
a7a7a1db2a
commit
097a5b2f34
|
@ -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)) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue