Skip to content

Commit

Permalink
Fix yml constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
oxsean committed Jul 26, 2024
1 parent 6dd81e6 commit 15add1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,4 @@ class RestProtocolTest extends BaseServiceTest {
'/spring/pbServerStream' | '{"service": "3"}' | 3
'/spring/pbServerStream' | '{}' | 0
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Object decode(InputStream is, Type targetType, Charset charset) throws De
@Override
public Object[] decode(InputStream is, Class<?>[] targetTypes, Charset charset) throws DecodeException {
try (InputStreamReader reader = new InputStreamReader(is, charset)) {
Yaml yaml = new Yaml();
Yaml yaml = createYaml();
Iterator<Object> iterator = yaml.loadAll(reader).iterator();
int len = targetTypes.length;
Object[] results = new Object[len];
Expand Down

0 comments on commit 15add1c

Please sign in to comment.