java-design-patterns
java-design-patterns copied to clipboard
Issue#1957
This PR helps for solving #1957
I use 1000L to replace 1000 to avoid the overflow bug. Guaranteed not to overflow when converting int types to long types.
And I also fix the test method to avoid test overflow, I hope it can work now.