[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: Blair Zajac <blair_at_orcaware.com>
Date: Thu, 03 Jul 2008 18:18:29 -0700

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?

Regards,
Blair

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-04 03:18:50 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.