Ard Schrijvers pushed to branch feature/CMS-10897 at cms-community / hippo-services-api
Commits: 7fafe01a by Ard Schrijvers at 2017-09-28T00:00:47+02:00 CMS-10897 remove pointless RuntimeException javadoc mention The lock manager impl shouldn't throw a runtime exception but just log a warning or error in case something completely unexpected happens (like failing database connection) - - - - - 1 changed file: - src/main/java/org/onehippo/cms7/services/lock/LockManager.java Changes: ===================================== src/main/java/org/onehippo/cms7/services/lock/LockManager.java ===================================== --- a/src/main/java/org/onehippo/cms7/services/lock/LockManager.java +++ b/src/main/java/org/onehippo/cms7/services/lock/LockManager.java @@ -83,7 +83,6 @@ public interface LockManager { * the {@link LockManager} implementation most likely logging a warning or error, because it is an * implementation issue if {@code unlock(key)} is invoked by a thread that does not hold the lock. * @throws IllegalArgumentException if the {@code key} exceeds 256 chars - * @throws RuntimeException in case some error occurs. */ void unlock(String key); @@ -95,7 +94,6 @@ public interface LockManager { * </p> * @param key the {@code key} to check whether there is a lock for * @return {@code true} when locked - * @throws RuntimeException in case some error occurs. */ boolean isLocked(String key); @@ -123,7 +121,6 @@ public interface LockManager { * </p> * @param key the {@code key} to check whether there is a lock for * @throws IllegalArgumentException if the {@code key} exceeds 256 chars - * @throws RuntimeException in case some error occurs. */ void abort(String key); View it on GitLab: https://code.onehippo.org/cms-community/hippo-services-api/commit/7fafe01a54ebdb973f36547d16e5aa58d5c90854 --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-services-api/commit/7fafe01a54ebdb973f36547d16e5aa58d5c90854 You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn