Skip to content

Commit

Permalink
Ignore required documentation for @ConfigMapping default methods
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Feb 23, 2023
1 parent 9a33e67 commit 92a7804
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,20 +512,22 @@ private void processCtorConfigItem(ExecutableElement ctor, Properties javadocPro
final String docComment = getRequiredJavadoc(ctor);
final StringBuilder buf = new StringBuilder();
appendParamTypes(ctor, buf);
javadocProps.put(className + Constants.DOT + buf.toString(), docComment);
javadocProps.put(className + Constants.DOT + buf, docComment);
}

private void processMethodConfigItem(ExecutableElement method, Properties javadocProps, String className) {
final String docComment = getRequiredJavadoc(method);
final StringBuilder buf = new StringBuilder();
buf.append(method.getSimpleName().toString());
appendParamTypes(method, buf);
javadocProps.put(className + Constants.DOT + buf.toString(), docComment);
javadocProps.put(className + Constants.DOT + buf, docComment);
}

private void processMethodConfigMapping(ExecutableElement method, Properties javadocProps, String className) {
final String docComment = getRequiredJavadoc(method);
javadocProps.put(className + Constants.DOT + method.getSimpleName().toString(), docComment);
if (method.getModifiers().contains(Modifier.ABSTRACT)) {
final String docComment = getRequiredJavadoc(method);
javadocProps.put(className + Constants.DOT + method.getSimpleName().toString(), docComment);
}
}

private void processConfigGroup(RoundEnvironment roundEnv, TypeElement annotation) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ interface Group {
*/
String value();
}

default void mustNotRequireDocs() {

}
}

0 comments on commit 92a7804

Please sign in to comment.