Skip to content
Permalink
Browse files

[SMALLFIX] Replace anonymous type with lambda

pr-link: #8711
change-id: cid-f2759c2d3c268788bd4469baba4f91893be07fa3
  • Loading branch information...
edwardmartin927 authored and alluxio-bot committed May 16, 2019
1 parent 2ede751 commit e60a29ded385de79bc6f6d25b76acbe2985445d2
@@ -55,12 +55,8 @@
UfsJournalGarbageCollector(UfsJournal journal) {
mJournal = Preconditions.checkNotNull(journal, "journal");
mUfs = mJournal.getUfs();
mGc = mExecutor.scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
gc();
}
}, Constants.SECOND_MS, ServerConfiguration.getMs(PropertyKey.MASTER_JOURNAL_GC_PERIOD_MS),
mGc = mExecutor.scheduleAtFixedRate(this::gc,
Constants.SECOND_MS, ServerConfiguration.getMs(PropertyKey.MASTER_JOURNAL_GC_PERIOD_MS),
TimeUnit.MILLISECONDS);
}

0 comments on commit e60a29d

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