fix back-to-front expressions

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@506313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2007-02-12 06:12:07 +00:00
parent 8cfa26ec2d
commit 7e4bf4835b
1 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@
for ( java.util.Iterator i = getRepositories().iterator(); i.hasNext(); ) for ( java.util.Iterator i = getRepositories().iterator(); i.hasNext(); )
{ {
RepositoryConfiguration repository = (RepositoryConfiguration) i.next(); RepositoryConfiguration repository = (RepositoryConfiguration) i.next();
if ( urlName != null ? !urlName.equals( repository.getUrlName() ) : repository.getUrlName() != null ) if ( urlName != null ? urlName.equals( repository.getUrlName() ) : repository.getUrlName() == null )
{ {
return repository; return repository;
} }
@ -169,7 +169,7 @@
for ( java.util.Iterator i = getRepositories().iterator(); i.hasNext(); ) for ( java.util.Iterator i = getRepositories().iterator(); i.hasNext(); )
{ {
RepositoryConfiguration repository = (RepositoryConfiguration) i.next(); RepositoryConfiguration repository = (RepositoryConfiguration) i.next();
if ( id != null ? !id.equals( repository.getId() ) : repository.getId() != null ) if ( id != null ? id.equals( repository.getId() ) : repository.getId() == null )
{ {
return repository; return repository;
} }
@ -182,7 +182,7 @@
for ( java.util.Iterator i = getSyncedRepositories().iterator(); i.hasNext(); ) for ( java.util.Iterator i = getSyncedRepositories().iterator(); i.hasNext(); )
{ {
SyncedRepositoryConfiguration repository = (SyncedRepositoryConfiguration) i.next(); SyncedRepositoryConfiguration repository = (SyncedRepositoryConfiguration) i.next();
if ( id != null ? !id.equals( repository.getId() ) : repository.getId() != null ) if ( id != null ? id.equals( repository.getId() ) : repository.getId() == null )
{ {
return repository; return repository;
} }
@ -195,7 +195,7 @@
for ( java.util.Iterator i = getProxiedRepositories().iterator(); i.hasNext(); ) for ( java.util.Iterator i = getProxiedRepositories().iterator(); i.hasNext(); )
{ {
ProxiedRepositoryConfiguration repository = (ProxiedRepositoryConfiguration) i.next(); ProxiedRepositoryConfiguration repository = (ProxiedRepositoryConfiguration) i.next();
if ( id != null ? !id.equals( repository.getId() ) : repository.getId() != null ) if ( id != null ? id.equals( repository.getId() ) : repository.getId() == null )
{ {
return repository; return repository;
} }