Alluxio / Community

New Contributor Tasks for Alluxio
20 stars 38 forks source link

[SMALLFIX] Java 8 improvement: replace anonymous type with lambda in alluxio/job/client/src/main/java/alluxio/client/job/RetryHandlingJobMasterClient.java#cancel #451

Closed newnius closed 5 years ago

newnius commented 5 years ago

Replace

    retryRPC(new RpcCallable<Void>() {
      public Void call() {
        mClient.cancel(CancelPRequest.newBuilder().setJobId(jobId).build());
        return null;
      }
    });

with

    retryRPC((RpcCallable<Void>) () -> {
      mClient.cancel(CancelPRequest.newBuilder().setJobId(jobId).build());
      return null;
    });