Skip to content

Commit

Permalink
[SMALLFIX]Use the @nullable annotation
Browse files Browse the repository at this point in the history
Use the @nullable annotation for all methods which may return null in
/alluxio/core/server/master/src/main/java/alluxio/master/file/meta/LazyUfsBlockLocationCache.java

pr-link: #9055
change-id: cid-9bdff81ddb569654f4a9a61862d4e3f05aeaf810
  • Loading branch information
snowhealing authored and alluxio-bot committed May 11, 2019
1 parent 475aab7 commit ae0816c
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -27,6 +27,7 @@
import java.io.IOException;
import java.util.List;

import javax.annotation.Nullable;
import javax.annotation.concurrent.ThreadSafe;

/**
Expand Down Expand Up @@ -65,6 +66,7 @@ public List<String> get(long blockId) {
}

@Override
@Nullable
public List<String> get(long blockId, AlluxioURI fileUri, long offset) {
List<String> locations = mCache.getIfPresent(blockId);
if (locations != null) {
Expand Down

0 comments on commit ae0816c

Please sign in to comment.