classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Patch: minor URLStreamHandler cleanup


From: Mark Wielaard
Subject: Re: [cp-patches] Patch: minor URLStreamHandler cleanup
Date: Thu, 15 Sep 2005 16:51:30 +0200

Hi,

On Wed, 2005-09-14 at 18:03 -0700, Anthony Green wrote:
> All this does is remove a redundant null pointer check.  This could
> never be null since we would have thrown an exception a couple of lines
> before (see the first line of the patch).
>
> 2005-09-14  Anthony Green  <address@hidden>
> 
>       * java/net/URLStreamHandler.java: Remove redundant null pointer
>       check.

Note that there are various other places in URLStreamHandler that are
checking for null on the URL protocol part. Which can never happen since
URL is final and its constructors don't allow a null protocol.

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]