Steps to reproduce:
- Add a
LibraryModels implementation
- Implement e.g. the
castToNonNullMethods method and return a method ref with a signature like "<T>castToNonNull(T, java.lang.String)" (notice the space after the comma!)
Expected: It works, because the Javadocs example has a comma, see:
|
* <li>signature is a method name plus argument types, e.g., <code>foo(java.lang.Object, |
|
* java.lang.String)</code> |
Actual: The space doesn't make it work. Removing the space makes it work:
-"<T>castToNonNull(T, java.lang.String)"
+"<T>castToNonNull(T,java.lang.String)"
The Javadocs should probably be fixed, or spaces could be removed by methodRef.