[NEW BUG]: Avoid allocations in String.replace(CharSequence, CharSequence) in case no replacement happened
vitalyd at gmail.com
Thu Mar 2 11:50:54 UTC 2017
On Thu, Mar 2, 2017 at 6:45 AM Claes Redestad <claes.redestad at oracle.com>
> On 03/02/2017 11:38 AM, Ulf Zibis wrote:
> > Hi Vitaly,
> > I don't see any contract to throw an NPE:
> "Unless otherwise noted, passing anullargument to a constructor or
> method in this class will cause a|NullPointerException|
> be thrown."
Ah, it was moved to class level docs in 8 - thanks Claes.
As a side comment, I certainly understand the desire to not repeat yourself
for each method's javadoc, but at the same time it's a bit less user
friendly as most people don't read class level docs nearly as frequently as
Sent from my phone
More information about the core-libs-dev