Skip to content

Commit

Permalink
[client] rename import types member (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan authored Jan 27, 2025
1 parent 29270a2 commit 6c734c0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion http-api/src/main/java/io/avaje/http/api/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
/**
* Client interface types that we want to generate HTTP clients for.
*/
Class<?>[] types();
Class<?>[] value();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void readModule() {
}

private void writeForImported(Element importedElement) {
ImportPrism.getInstanceOn(importedElement).types().stream()
ImportPrism.getInstanceOn(importedElement).value().stream()
.map(ProcessingContext::asElement)
.filter(Objects::nonNull)
.forEach(this::writeClient);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Client.Import(types = OtherApi.class)
@Client.Import(value = OtherApi.class)
package org.example;

import io.avaje.http.api.Client;
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import static org.assertj.core.api.Assertions.assertThat;

@Client.Import(types = CommonApi.class)
@Client.Import(CommonApi.class)
class CommonApiTest {

static CommonApi client;
Expand Down

0 comments on commit 6c734c0

Please sign in to comment.