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/server/master/src/main/java/alluxio/master/MasterUtils.java#createMasters #450

Closed newnius closed 5 years ago

newnius commented 5 years ago

Replace

      callables.add(new Callable<Void>() {
        @Override
        public Void call() throws Exception {
          if (factory.isEnabled()) {
            factory.create(registry, context);
          }
          return null;
        }
      });

with

      callables.add(() -> {
        if (factory.isEnabled()) {
          factory.create(registry, context);
        }
        return null;
      });