kennknowles commented on code in PR #27416:
URL: https://github.com/apache/beam/pull/27416#discussion_r1261219298
##########
sdks/java/core/src/main/java/org/apache/beam/sdk/util/NoopLock.java:
##########
@@ -56,16 +54,15 @@ public boolean tryLock() {
}
@Override
- public boolean tryLock(long time, @Nonnull TimeUnit unit) {
+ public boolean tryLock(long time, @NonNull TimeUnit unit) {
return true;
}
@Override
public void unlock() {}
- @Nonnull
@Override
- public Condition newCondition() {
+ public @NonNull Condition newCondition() {
Review Comment:
Delete the annotation if it still type checks without it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]