From 26c1dd17933058c71b36fda3990386d0fb32bf49 Mon Sep 17 00:00:00 2001 From: Patrick Koenig Date: Thu, 22 Jun 2023 11:56:03 -0700 Subject: [PATCH] Clarify error message (#2059) --- .../java/undertow/processor/data/ParamTypesResolver.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/conjure-undertow-processor/src/main/java/com/palantir/conjure/java/undertow/processor/data/ParamTypesResolver.java b/conjure-undertow-processor/src/main/java/com/palantir/conjure/java/undertow/processor/data/ParamTypesResolver.java index 7733b4312..d8491704b 100644 --- a/conjure-undertow-processor/src/main/java/com/palantir/conjure/java/undertow/processor/data/ParamTypesResolver.java +++ b/conjure-undertow-processor/src/main/java/com/palantir/conjure/java/undertow/processor/data/ParamTypesResolver.java @@ -39,7 +39,6 @@ import com.squareup.javapoet.CodeBlock; import com.squareup.javapoet.TypeName; import io.undertow.server.HttpServerExchange; -import java.io.InputStream; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; @@ -146,9 +145,8 @@ public Optional getParameterType(VariableElement variableElement, return Optional.of(ParameterTypes.context()); } else { context.reportError( - "At least one annotation should be present or type should be InputStream", + "At least one annotation should be present", variableElement, - SafeArg.of("requestBody", InputStream.class), SafeArg.of("supportedAnnotations", PARAM_ANNOTATION_CLASSES)); return Optional.empty(); }