Skip to content

Commit

Permalink
[hotfix][chck] Remove Nullable annotation from method with primitive …
Browse files Browse the repository at this point in the history
…return type

ZooKeeperStateHandleStore#releaseAndTryRemove returns a primitive boolean and, thus,
does not need a @nullable annotation.
  • Loading branch information
tillrohrmann committed Jun 5, 2019
1 parent 2405322 commit 1f8c7ff
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Nullable;

import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
Expand Down Expand Up @@ -328,7 +326,6 @@ public List<Tuple2<RetrievableStateHandle<T>, String>> getAllAndLock() throws Ex
* @return True if the state handle could be released
* @throws Exception If the ZooKeeper operation or discarding the state handle fails
*/
@Nullable
public boolean releaseAndTryRemove(String pathInZooKeeper) throws Exception {
checkNotNull(pathInZooKeeper, "Path in ZooKeeper");

Expand Down

0 comments on commit 1f8c7ff

Please sign in to comment.