Sometimes you want to distinguish between an empty string and null.
Is there a constant for empty string? I know that "" is pooled, but some tools complain about non-externalized string literals (and yeah, I'm that nit-picky too).
I've seen alot of libraries that implement the same thing:
public static final java.lang.String EMPTY_STRING
I don't like this because it should be in java.lang somewhere.
How do you folks handle an empty string?
Is there a constant for empty string? I know that "" is pooled, but some tools complain about non-externalized string literals (and yeah, I'm that nit-picky too).
I've seen alot of libraries that implement the same thing:
public static final java.lang.String EMPTY_STRING
I don't like this because it should be in java.lang somewhere.
How do you folks handle an empty string?