aboutsummaryrefslogtreecommitdiff
path: root/value/src/main/java/com
diff options
context:
space:
mode:
authorÉamonn McManus <emcmanus@google.com>2021-12-06 13:15:26 -0800
committerGoogle Java Core Libraries <java-libraries-firehose+copybara@google.com>2021-12-06 13:16:08 -0800
commit1f8d7f26bf4b0613a8602085cae77f15693ab086 (patch)
tree2fa8caa8a74a06f9782d91bf8ece3cd3e9209f94 /value/src/main/java/com
parent0b21d83b085e39e41ee8b7a725a446ca652f9923 (diff)
downloadauto-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.java8
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) {