Skip to content

Commit b07d995

Browse files
yvasylievvelo
andauthored
Allow override JacksonJrDecoder#findTransformer (#2299)
* Allow override JacksonJrDecoder#findTransformer Fixes #2297 * Update JacksonJrDecoder.java --------- Co-authored-by: Marvin <velo@users.noreply.github.com>
1 parent dbb6a5a commit b07d995

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jackson-jr/src/main/java/feign/jackson/jr/JacksonJrDecoder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 The Feign Authors
2+
* Copyright 2012-2024 The Feign Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55
* in compliance with the License. You may obtain a copy of the License at
@@ -32,7 +32,7 @@
3232
public class JacksonJrDecoder extends JacksonJrMapper implements Decoder {
3333

3434
@FunctionalInterface
35-
interface Transformer {
35+
protected interface Transformer {
3636
Object apply(JSON mapper, Reader reader) throws IOException;
3737
}
3838

@@ -90,7 +90,7 @@ public Object decode(Response response, Type type) throws IOException {
9090
}
9191
}
9292

93-
private static Transformer findTransformer(Response response, Type type) {
93+
protected Transformer findTransformer(Response response, Type type) {
9494
if (type instanceof Class) {
9595
return (mapper, reader) -> mapper.beanFrom((Class<?>) type, reader);
9696
}

0 commit comments

Comments
 (0)