Skip to content

Commit

Permalink
Alternative internal builder process
Browse files Browse the repository at this point in the history
  • Loading branch information
velo committed Aug 21, 2023
1 parent 2e09730 commit 9981206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reactive/src/main/java/feign/reactive/ReactiveFeign.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ public Builder contract(Contract contract) {
* @return a new Feign Instance.
*/
@Override
public Feign build() {
public Feign internalBuild() {
if (!(this.contract instanceof ReactiveDelegatingContract)) {
super.contract(new ReactiveDelegatingContract(this.contract));
} else {
super.contract(this.contract);
}
return super.build();
return super.internalBuild();
}

@Override
Expand Down

0 comments on commit 9981206

Please sign in to comment.