From 3ffb9c1f5c4ad68048d3c7857ad73b4fa4e0f5f9 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Thu, 16 Jan 2025 17:57:02 +1300 Subject: [PATCH] [client] Followup #546 - put GeneratedHttpComponent into top package Don't always put GeneratedHttpComponent into .httpclient as the client interface might NOT be public now with 546 --- .../java/io/avaje/http/generator/client/ComponentMetaData.java | 3 --- .../src/main/java/org/example/JunkApi.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/http-generator-client/src/main/java/io/avaje/http/generator/client/ComponentMetaData.java b/http-generator-client/src/main/java/io/avaje/http/generator/client/ComponentMetaData.java index ebd96315..ac086639 100644 --- a/http-generator-client/src/main/java/io/avaje/http/generator/client/ComponentMetaData.java +++ b/http-generator-client/src/main/java/io/avaje/http/generator/client/ComponentMetaData.java @@ -28,9 +28,6 @@ void setFullName(String fullName) { String fullName() { if (fullName == null) { String topPackage = TopPackage.of(generatedClients); - if (!topPackage.endsWith(".httpclient")) { - topPackage += ".httpclient"; - } fullName = topPackage + ".GeneratedHttpComponent"; } return fullName; diff --git a/tests/test-client-generation/src/main/java/org/example/JunkApi.java b/tests/test-client-generation/src/main/java/org/example/JunkApi.java index a446a8c7..bf4da6b3 100644 --- a/tests/test-client-generation/src/main/java/org/example/JunkApi.java +++ b/tests/test-client-generation/src/main/java/org/example/JunkApi.java @@ -13,7 +13,7 @@ import java.util.stream.Stream; @Client -public interface JunkApi { +interface JunkApi { @Post void asVoid();