This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new a33b86e Better method names. a33b86e is described below commit a33b86e61f23170f6f63fd484dee477dc78bfa6c Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jun 19 11:03:14 2020 -0400 Better method names. --- src/main/java/org/apache/commons/lang3/concurrent/Locks.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/concurrent/Locks.java b/src/main/java/org/apache/commons/lang3/concurrent/Locks.java index c485686..d2cdfdb 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/Locks.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/Locks.java @@ -87,11 +87,11 @@ public class Locks { } public <T> T callReadLocked(final FailableFunction<O, T, ?> function) { - return lockApplyUnock(() -> lock.readLock(), function); + return lockApplyUnlock(() -> lock.readLock(), function); } public <T> T callWriteLocked(final FailableFunction<O, T, ?> function) { - return lockApplyUnock(() -> lock.writeLock(), function); + return lockApplyUnlock(() -> lock.writeLock(), function); } protected void lockAcceptUnlock(final LongSupplier stampSupplier, final FailableConsumer<O, ?> consumer) { @@ -105,7 +105,7 @@ public class Locks { } } - protected <T> T lockApplyUnock(final LongSupplier stampSupplier, final FailableFunction<O, T, ?> function) { + protected <T> T lockApplyUnlock(final LongSupplier stampSupplier, final FailableFunction<O, T, ?> function) { final long stamp = stampSupplier.getAsLong(); try { return function.apply(lockedObject);