Skip to content

Commit

Permalink
Merge pull request #31384 from radcortez/config-docs-ignore-default-m…
Browse files Browse the repository at this point in the history
…ethods

Ignore required documentation for @ConfigMapping default methods
  • Loading branch information
gsmet authored Mar 2, 2023
2 parents 6512270 + 92a7804 commit 2574aa7
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 2574aa7

Please sign in to comment.