Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 8 Improvement: replace anonymous type with lambda in alluxio.master.lineage.LineageMasterClientRestServiceHandler#reportLostFile #222

Closed
xiaole-max opened this issue Mar 22, 2018 · 0 comments

Comments

@xiaole-max
Copy link

change

    return RestUtils.call(new RestUtils.RestCallable<Void>() {
      @Override
      public Void call() throws Exception {
        Preconditions.checkNotNull(path, "required 'path' parameter is missing");
        mLineageMaster.reportLostFile(path);
        return null;
      }
    });

to

    return RestUtils.call((RestUtils.RestCallable<Void>) () -> {
      Preconditions.checkNotNull(path, "required 'path' parameter is missing");
      mLineageMaster.reportLostFile(path);
      return null;
    });

@apc999 apc999 closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants