jdk8/jdk8/langtools: 15 new changesets

Dr Andrew John Hughes ahughes at redhat.com
Wed Aug 17 09:30:02 PDT 2011


On 14:50 Wed 17 Aug     , jitesh.bharat.dundas at accenture.com wrote:
> Hello,
> 
> This is regarding the second changeset:_
> 
> There is a function entered :-
> 
> private void parseSerialFieldString() {
>          int len = text.length();
> +        if (len == 0) {
> +            return;
> +        }
> 
> 
> 1) I want to know if there is a need for a null check to be put in place for  "text".

If the result of the null check is to throw an NPE, then it already does that
when length is called.

-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: F5862A37 (https://keys.indymedia.org/)
Fingerprint = EA30 D855 D50F 90CD F54D  0698 0713 C3ED F586 2A37


More information about the jdk8-dev mailing list