Alluxio / Community

New Contributor Tasks for Alluxio
20 stars 38 forks source link

[SMALLFIX] Java 8 improvement: replace anonymous type with lambda in alluxio/core/client/fs/src/main/java/alluxio/client/block/stream/LocalFileDataWriter.java#create #448

Closed newnius closed 5 years ago

newnius commented 5 years ago

Replace

      closer.register(new Closeable() {
        @Override
        public void close() throws IOException {
          context.releaseBlockWorkerClient(address, blockWorker);
        }
      });

with

      closer.register(() -> context.releaseBlockWorkerClient(address, blockWorker));