[Subclipse-dev] [Patch] Unnecessary iteration in SVNRepositories.java
From: Laszlo Biczok <biczok_at_freemail.hu>
Date: Thu, 19 Feb 2009 01:55:32 -0800 (PST)
Hi,
It seems to me, that in org.tigris.subversion.subclipse.core.repo.SVNRepositories.java the method exactMatchExists() unnecessarily loops through the repositories using an iterator. As the repository URL (the key) comparison is case sensitive, a simple repositories.containsKey() is sufficient.
Below is the patch for the change.
Cheers,
Laca
Index: src/org/tigris/subversion/subclipse/core/repo/SVNRepositories.java
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_subclipse.tigris.org].
|
This is an archived mail posted to the Subclipse Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.