Hi All:

Right now we have a giant class called StringUtils. I have code that in my
own library that has at least one null-safe API that for Strings. For
example a String.getBytes(String, Charset) that returns a null byte[] if
the input String is null.

I'd like to propose a new class called NullSafeStrings, that covers all
String APIs (there aren't that many) for null-safe String input. If some of
these APIs are already in StringUtils, those would be deprecated and point
to NullSafeStrings.

Note that I am not using the "Utils" postfix on purpose since I find it
meaning less and the JRE now uses the plural form for this kind of code;
see Files and Paths.

Thoughts?

Gary

Reply via email to