Skip to content

Commit

Permalink
Adjust warning message
Browse files Browse the repository at this point in the history
Adjust warning message to not be aggregate specific, as the LockFactory
is not aggregate specific either.

#2242
  • Loading branch information
smcvb committed Jun 20, 2022
1 parent aa38413 commit f48ae94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected PessimisticLockFactory(Builder builder) {
*/
@Override
public Lock obtainLock(String identifier) {
nonNull(identifier, () -> "The aggregate identifier to obtain a lock for may not be null.");
nonNull(identifier, () -> "The identifier to obtain a lock for may not be null.");
boolean lockObtained = false;
DisposableLock lock = null;
while (!lockObtained) {
Expand Down

0 comments on commit f48ae94

Please sign in to comment.