rholder / guava-retrying

This is a small extension to Google's Guava library to allow for the creation of configurable retrying strategies for an arbitrary function call, such as something that talks to a remote service with flaky uptime.
Apache License 2.0
1.43k stars 275 forks source link

Bug: StopStrategies&StopStrategies will throw unformatted message #97

Open Technoboy- opened 4 years ago

Technoboy- commented 4 years ago

Reproduce:

StopStrategies.stopAfterAttempt(0);

It will throw print:

java.lang.IllegalArgumentException: maxAttemptNumber must be >= 1 but is %d [0]

The reason is for guava will format "%s", but we input "%d".

itning commented 3 years ago

Since this project has not been maintained for a long time, I fork this project and fix the problem https://github.com/itning/guava-retrying3