Commit c58e9adb authored by Evan W. Patton's avatar Evan W. Patton Committed by Susan Rati Lane

Add Javadoc extraction for property descriptions (#1811)

Change-Id: I7fdc2d77430473420ed2d0e17d798a485ea16325
parent ad97f109
......@@ -1096,8 +1096,19 @@ public abstract class ComponentProcessor extends AbstractProcessor {
propertyName);
}
// Use Javadoc for property unless description is set to a non-empty string.
String description = elementUtils.getDocComment(element);
if (!simpleProperty.description().isEmpty()) {
description = simpleProperty.description();
}
if (description == null) {
description = "";
}
// Read only until the first javadoc parameter
description = description.split("[^\\\\][@{]")[0].trim();
Property property = new Property(propertyName,
simpleProperty.description(),
description,
simpleProperty.category(),
simpleProperty.userVisible(),
elementUtils.isDeprecated(element));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment