[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r31993 - in trunk/subversion/bindings/javahl: src/org/tigris/subversion/javahl tests/org/tigris/subversion/javahl

From: Daniel L. Rall <dlr_at_finemaltcoding.com>
Date: Thu, 3 Jul 2008 18:31:01 -0700

On Thu, 03 Jul 2008, Blair Zajac wrote:

> dlr_at_tigris.org wrote:
> >Author: dlr
> >Date: Thu Jul 3 16:32:10 2008
> >New Revision: 31993
> >
> >Log:
> >JavaHL: Add a new API which uses java.net.URL to determine whether the
> >specified Subversion path is considered to be a URL. This may be
> >slightly different than what svn_path_is_url() considers to be a URL,
> >as the latter employs a simplistic implementation.
> >
>
>
> >+
> >+ /**
> >+ * Whether a URL is valid, according to
> >+ * <code>java.net.URL</code>. This may be a slightly different
> >+ * idea than according to <code>svn_path_is_url()</code>.
> >+ *
> >+ * @param path The Subversion "path" to inspect.
> >+ * @return Whether <code>path</code> is a URL.
> >+ * @throws NullPointerException If <code>path</code> is
> ><code>null</code>.
>
> How about returning an IllegalArgumentException instead for a null value?

Gaaaah, it's a bikeshed, and it's not even weekend yet!!! Close enough on an
evening-before-holiday weekend, I guess. ;-)

(Good suggestion, r31997.)

Thanks, Dan

  • application/pgp-signature attachment: stored
Received on 2008-07-04 03:31:54 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.