diff options
author | Éamonn McManus <emcmanus@google.com> | 2021-12-06 13:15:26 -0800 |
---|---|---|
committer | Google Java Core Libraries <java-libraries-firehose+copybara@google.com> | 2021-12-06 13:16:08 -0800 |
commit | 1f8d7f26bf4b0613a8602085cae77f15693ab086 (patch) | |
tree | 2fa8caa8a74a06f9782d91bf8ece3cd3e9209f94 /value/src/main/java/com | |
parent | 0b21d83b085e39e41ee8b7a725a446ca652f9923 (diff) | |
download | auto-1f8d7f26bf4b0613a8602085cae77f15693ab086.tar.gz |
Make `@AutoBuilder` available unconditionally.
RELNOTES=The `@AutoBuilder` annotation documented [here](https://github.com/google/auto/blob/master/value/userguide/autobuilder.md) is now fully stable and supported.
PiperOrigin-RevId: 414523614
Diffstat (limited to 'value/src/main/java/com')
-rw-r--r-- | value/src/main/java/com/google/auto/value/processor/AutoBuilderProcessor.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/value/src/main/java/com/google/auto/value/processor/AutoBuilderProcessor.java b/value/src/main/java/com/google/auto/value/processor/AutoBuilderProcessor.java index 53fe836d..79bccafd 100644 --- a/value/src/main/java/com/google/auto/value/processor/AutoBuilderProcessor.java +++ b/value/src/main/java/com/google/auto/value/processor/AutoBuilderProcessor.java @@ -98,12 +98,8 @@ public class AutoBuilderProcessor extends AutoValueishProcessor { @Override void processType(TypeElement autoBuilderType) { - if (!processingEnv.getOptions().containsKey(ALLOW_OPTION)) { - errorReporter() - .abortWithError( - autoBuilderType, - "Compile with -A%s to enable this UNSUPPORTED AND UNSTABLE prototype", - ALLOW_OPTION); + if (processingEnv.getOptions().containsKey(ALLOW_OPTION)) { + errorReporter().reportWarning(autoBuilderType, "The -A%s option is obsolete", ALLOW_OPTION); } if (autoBuilderType.getKind() != ElementKind.CLASS && autoBuilderType.getKind() != ElementKind.INTERFACE) { |