Skip to content

Commit 3ffb9c1

Browse files
committed
[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
1 parent 221dcca commit 3ffb9c1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

http-generator-client/src/main/java/io/avaje/http/generator/client/ComponentMetaData.java

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ void setFullName(String fullName) {
2828
String fullName() {
2929
if (fullName == null) {
3030
String topPackage = TopPackage.of(generatedClients);
31-
if (!topPackage.endsWith(".httpclient")) {
32-
topPackage += ".httpclient";
33-
}
3431
fullName = topPackage + ".GeneratedHttpComponent";
3532
}
3633
return fullName;

tests/test-client-generation/src/main/java/org/example/JunkApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import java.util.stream.Stream;
1414

1515
@Client
16-
public interface JunkApi {
16+
interface JunkApi {
1717

1818
@Post
1919
void asVoid();

0 commit comments

Comments
 (0)