Add support for class file parameter names
This commit is contained in:
@@ -213,7 +213,7 @@ public final class Callbacks {
|
||||
final boolean hasName = annotation != null && Strings.isNotBlank(annotation.value());
|
||||
final boolean hasDescription = annotation != null && Strings.isNotBlank(annotation.description());
|
||||
|
||||
this.name = hasName ? annotation.value() : null;
|
||||
this.name = hasName ? annotation.value() : (parameter.isNamePresent() ? parameter.getName() : null);
|
||||
|
||||
if (parameterDescriptions.containsKey(this.name)) {
|
||||
this.description = parameterDescriptions.get(this.name);
|
||||
|
||||
Reference in New Issue
Block a user