Navigation Menu

Skip to content

Commit

Permalink
Just warn about docs, don't error
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Nov 22, 2019
1 parent 076c282 commit cd4eeb1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -226,7 +226,7 @@ private void writeFile(Path docsDir, Messager messager, TypeElement typeElement,
.anyMatch(e -> !e.contains(Modifier.STATIC));
if (containsNonStatic) {
//TODO: Error?
messager.printMessage(Diagnostic.Kind.ERROR, "Type " + typeElement.getQualifiedName() + " requires either a Script file or a '@docParam this <example>' doc comment", typeElement);
messager.printMessage(Diagnostic.Kind.WARNING, "Type " + typeElement.getQualifiedName() + " requires either a Script file or a '@docParam this <example>' doc comment", typeElement);
}
}
}
Expand Down Expand Up @@ -516,7 +516,7 @@ private void fillMethodInfo(boolean isExtension, int operandCount, ExecutableEle
} else if (needsDocParam) {
//TODO Error?
this.processingEnv.getMessager()
.printMessage(Diagnostic.Kind.ERROR, String.format(Locale.ENGLISH, "Parameter %s of method %s requires a '@docParam' in the method's javadoc since the type %s has no attached script.", operandInfo
.printMessage(Diagnostic.Kind.WARNING, String.format(Locale.ENGLISH, "Parameter %s of method %s requires a '@docParam' in the method's javadoc since the type %s has no attached script.", operandInfo
.getOperandName(), method.getSimpleName(), element
.getSimpleName()), method);
}
Expand Down

0 comments on commit cd4eeb1

Please sign in to comment.