Skip to content

Commit ad58178

Browse files
committed
Fix javadoc
1 parent 3dd1ddf commit ad58178

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/main/java/uk/ac/ic/doc/slurp/multilock/LockMode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ public void unlock(final MultiLock multiLock) {
121121
* @param multiLock the MultiLock object.
122122
* @param lockMode the mode to lock the MultiLock.
123123
*
124-
* @return true if the lock succeeded, false otherwise.
125-
*
126124
* @throws IllegalArgumentException if an unknown mode is provided.
127125
*/
128126
public static void lock(final MultiLock multiLock, final LockMode lockMode) {
@@ -162,7 +160,6 @@ public static void lock(final MultiLock multiLock, final LockMode lockMode) {
162160
* @return true if the lock was acquired.
163161
*
164162
* @throws IllegalArgumentException if an unknown mode is provided.
165-
* @throws InterruptedException if the thread was interrupted
166163
*/
167164
public static boolean tryLock(final MultiLock multiLock, final LockMode lockMode) {
168165
switch (lockMode) {

src/main/java/uk/ac/ic/doc/slurp/multilock/MultiLock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ public final boolean hasQueuedThreads() {
650650
}
651651

652652
/**
653-
* {@see java.util.concurrent.locks.AbstractQueuedLongSynchronizer#isHeldExclusively()}
653+
* See {@link java.util.concurrent.locks.AbstractQueuedLongSynchronizer#isHeldExclusively()}
654654
*
655655
* @return true if the current thread holds the write lock.
656656
*/

0 commit comments

Comments
 (0)