Skip to content

introduce OptionalDecoder - #548

Merged
codefromthecrypt merged 7 commits into
OpenFeign:masterfrom
arielsegura:OptionalAwareDecoder-in-feign
May 6, 2017
Merged

introduce OptionalDecoder#548
codefromthecrypt merged 7 commits into
OpenFeign:masterfrom
arielsegura:OptionalAwareDecoder-in-feign

Conversation

@arielsegura

Copy link
Copy Markdown
Contributor

Addresses #294

@arielsegura arielsegura changed the title introduces OptionalDecoder introduce OptionalDecoder Apr 2, 2017
import java.lang.reflect.Type;
import java.util.Optional;

public class OptionalDecoder implements Decoder {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final

@codefromthecrypt codefromthecrypt left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be feign-java8?

final Decoder delegate;

public OptionalDecoder(Decoder delegate) {
this.delegate = delegate;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check null

@arielsegura

Copy link
Copy Markdown
Contributor Author

@adriancole done!

@spencergibb

Copy link
Copy Markdown
Contributor

I like feign-java8 as well

@arielsegura

arielsegura commented May 1, 2017

Copy link
Copy Markdown
Contributor Author

Naming it as feign-java8 will imply that further features around java8 will have to be shipped in this artefact, so for instance if one just wants to use Optional stuff, will bring the whole java8 support. If that's ok, I don't mind renaming it

@codefromthecrypt

codefromthecrypt commented May 2, 2017 via email

Copy link
Copy Markdown

@arielsegura

Copy link
Copy Markdown
Contributor Author

Fair enough 👍

@codefromthecrypt

Copy link
Copy Markdown

if you can rejig in the next couple days, will go in the next release. Don't forget CHANGES file
cc @jfuerth

@arielsegura

arielsegura commented May 4, 2017

Copy link
Copy Markdown
Contributor Author

@adriancole Done!

@codefromthecrypt

Copy link
Copy Markdown

mind renaming the dir to java8 (pom artifact is good, just this is more conventional with others)

@arielsegura

Copy link
Copy Markdown
Contributor Author

@adriancole renamed

@codefromthecrypt
codefromthecrypt merged commit d7f40f5 into OpenFeign:master May 6, 2017
phymbert pushed a commit to phymbert/feign that referenced this pull request Aug 22, 2017
Introduces `feign-java8` with support for `java.util.Optional`
velo pushed a commit that referenced this pull request Oct 7, 2024
Introduces `feign-java8` with support for `java.util.Optional`
velo pushed a commit that referenced this pull request Oct 8, 2024
Introduces `feign-java8` with support for `java.util.Optional`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants