I personally think the annotation ones are overkill; jdk doesn't use
annotations for automatic code generation for most of its core libs, and
these annotations will decrease the readability of code.

As far as I see, most of your utility methods are bypassing nulls. Imo the
right approach in the future would be avoiding null references like the
direction of modern jdk than adding a lot of null handlers. Otherwise, new
utility methods should go to java.lang.String I think.

On Fri, May 21, 2021 at 3:27 PM Alberto Otero Rodríguez <
albest...@hotmail.com> wrote:

> Hi, I'm Alberto Otero Rodríguez,
>
> You have answered several questions I made in:
> https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-May/thread.html
>
> Could you have a look at my other question?:
> https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-May/077882.html
>
> I have proposed there creating a new java.util.Strings class and maybe
> some new annotations.
>
> I know the annotations would require too much effort, but the Strings
> class is pretty simple and I think it would be really useful.
>
> Thank you so much for your answers!
>
> Regards,
>
> Alberto.
>

Reply via email to