Commit bfe7412
committed
Rename cache(int) to cacheWithCapacityHint(int)
The parameter is a capacity hint, but more frequently confused with a
buffer size like replay(int) than it is correctly understood. It also
offers no guarantees, only the weak hope of optimization.
This change renames the method, deprecating the old name. It also adds
javadoc calling out that the parameter is not a bound and referencing
replay(int).autoConnect() as a way to achieve that behavior.1 parent f60f8ce commit bfe7412
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3664 | 3664 | | |
3665 | 3665 | | |
3666 | 3666 | | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
3667 | 3676 | | |
3668 | 3677 | | |
3669 | 3678 | | |
| |||
3689 | 3698 | | |
3690 | 3699 | | |
3691 | 3700 | | |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
3692 | 3704 | | |
3693 | | - | |
| 3705 | + | |
3694 | 3706 | | |
3695 | 3707 | | |
3696 | 3708 | | |
3697 | 3709 | | |
3698 | | - | |
3699 | | - | |
| 3710 | + | |
| 3711 | + | |
3700 | 3712 | | |
3701 | 3713 | | |
3702 | 3714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
| 666 | + | |
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
| |||
0 commit comments