When I use the Java 8 method reference double colon operator (::) with new operator (e.g. MyType::new), I get this error in Eclipse of Spring Tool suit
::
MyType::new
I have solved it by changing the "Use default annotation for null specifications"
I have enter the both class names:
javax.annotation.Nonnull javax.annotation.Nullable