Skip to content
Permalink
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
/alluxio/core/server/master/src/main/java/alluxio/master/file/meta/MountTable.java#reverseResolve

pr-link: #8972
change-id: cid-7615ea8d0ee0a9a9c63c364e1cfe05e5bb470878
  • Loading branch information...
Logarithm5314 authored and alluxio-bot committed May 12, 2019
1 parent 395eea8 commit 19bea907b4f94f56f576bfbde3002f5c2e5bb2e6
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/server/master/src/main/java/alluxio/master/file/meta/MountTable.java
@@ -269,6 +269,7 @@ private AlluxioURI reverseResolve(AlluxioURI mountPoint,
* @param ufsUri an Ufs path URI
* @return an Alluxio path URI
*/
@Nullable
public AlluxioURI reverseResolve(AlluxioURI ufsUri) {
AlluxioURI returnVal = null;
for (Map.Entry<String, MountInfo> mountInfoEntry : getMountTable().entrySet()) {
@@ -293,6 +294,7 @@ public AlluxioURI reverseResolve(AlluxioURI ufsUri) {
* @param mountId mount id to look up ufs client
* @return ufsClient
*/
@Nullable
public UfsManager.UfsClient getUfsClient(long mountId) {
try {
return mUfsManager.get(mountId);

0 comments on commit 19bea90

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