Skip to content
Browse files

[SMALLFIX] Use @nullable annotation for methods which may return null

[SMALLFIX] Use the @nullable annotation for all methods which may return
null in

pr-link: #9076
change-id: cid-88df92b239169942955dce56b5cd20d58c1abd65
  • Loading branch information...
Oceanzzzz authored and alluxio-bot committed May 14, 2019
1 parent 6264882 commit d767602b4e49a265a62a3d580fa4b060754d8b74
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/server/worker/src/main/java/alluxio/worker/block/
@@ -35,6 +35,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;

import javax.annotation.concurrent.NotThreadSafe;

@@ -263,6 +264,7 @@ public TempBlockMeta getTempBlockMeta(long blockId) throws BlockDoesNotExistExce
* @param blockId the id of the temp block
* @return metadata of the block or null
public TempBlockMeta getTempBlockMetaOrNull(long blockId) {
for (StorageTier tier : mTiers) {
for (StorageDir dir : tier.getStorageDirs()) {

0 comments on commit d767602

Please sign in to comment.
You can’t perform that action at this time.