Skip to content

MethodRef Javadocs wrong for method with multiple arguments (space after comma doesn't work) #972

@robinst

Description

@robinst

Steps to reproduce:

  1. Add a LibraryModels implementation
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions