aboutsummaryrefslogtreecommitdiff
path: root/value/src/main/java/com/google/auto/value/processor/ErrorReporter.java
diff options
context:
space:
mode:
Diffstat (limited to 'value/src/main/java/com/google/auto/value/processor/ErrorReporter.java')
-rw-r--r--value/src/main/java/com/google/auto/value/processor/ErrorReporter.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/value/src/main/java/com/google/auto/value/processor/ErrorReporter.java b/value/src/main/java/com/google/auto/value/processor/ErrorReporter.java
index e2a3d839..3ec9a0ef 100644
--- a/value/src/main/java/com/google/auto/value/processor/ErrorReporter.java
+++ b/value/src/main/java/com/google/auto/value/processor/ErrorReporter.java
@@ -81,9 +81,12 @@ class ErrorReporter {
* @param e the element to which it pertains
* @param format the format string for the text of the error
* @param args arguments for the format string
+ * @return This method does not return, but is declared with an exception return type so you
+ * can write {@code throw abortWithError(...)} to tell the compiler that.
+ * @throws AbortProcessingException always
*/
@FormatMethod
- void abortWithError(Element e, String format, Object... args) {
+ AbortProcessingException abortWithError(Element e, String format, Object... args) {
reportError(e, format, args);
throw new AbortProcessingException();
}