Comment by N70Phone
Previously (or if you simply don't use var), a lot of java code takes the form of
BeanFactoryBuilder builder = new BeanFactoryBuilder(...);
This is just straight up a duplicate. With generics, generic parameters can be left out on one side but the class itself is still duplicated.