Skip to content

Commit

Permalink
Merge pull request square#3679 from fengdai/patch-1
Browse files Browse the repository at this point in the history
Use #defaultConverterFactoriesSize directly.
  • Loading branch information
JakeWharton authored Jan 10, 2022
2 parents faf5fa8 + 13fe2c9 commit 9b32c96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions retrofit/src/main/java/retrofit2/Retrofit.java
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,7 @@ public Builder() {}

// Do not add the default BuiltIntConverters and platform-aware converters added by build().
for (int i = 1,
size =
retrofit.converterFactories.size()
- Platform.get().createDefaultConverterFactories().size();
size = retrofit.converterFactories.size() - retrofit.defaultConverterFactoriesSize;
i < size;
i++) {
converterFactories.add(retrofit.converterFactories.get(i));
Expand Down

0 comments on commit 9b32c96

Please sign in to comment.