I'm not sure what's going on here. Here's an interface:
public interface AppInit {
void create(Environment var1);
}
Here's some class's method:
public static StandaloneModule create(AppInit appInit) {
return new StandaloneModule(appInit);
}
And here's how that method is being called:
StandaloneModule.create(Main::configure)
But that parameter method's signature is:
static void configure(final Environment environment) {
...
Why does this compile?