Replace some anonymous classes with lambdas

This commit is contained in:
Basil Crow committed 2021-07-05 11:14:36 -07:00
1 parent ded6e2d531
commit 27d7acc810
26 files changed
+29 -171

No files matched your search

@@ -543,12 +543,7 @@ public abstract class ExtensionFinder implements ExtensionPoint {
// make unique key, because Guice wants that.
Key key = Key.get(extType, Names.named(item.className() + "." + item.memberName()));
annotations.put(key,a);
bind(key).toProvider(new Provider() {
@Override
public Object get() {
return instantiate(item);
}
}).in(scope);
bind(key).toProvider(() -> instantiate(item)).in(scope);
}
loadedIndex.add(item);
} catch (Exception|LinkageError e) {