for ( java.util.Iterator i = getRepositories().iterator(); i.hasNext(); )\r
{\r
RepositoryConfiguration repository = (RepositoryConfiguration) i.next();\r
- if ( urlName != null ? !urlName.equals( repository.getUrlName() ) : repository.getUrlName() != null )\r
+ if ( urlName != null ? urlName.equals( repository.getUrlName() ) : repository.getUrlName() == null )\r
{\r
return repository;\r
}\r
for ( java.util.Iterator i = getRepositories().iterator(); i.hasNext(); )\r
{\r
RepositoryConfiguration repository = (RepositoryConfiguration) i.next();\r
- if ( id != null ? !id.equals( repository.getId() ) : repository.getId() != null )\r
+ if ( id != null ? id.equals( repository.getId() ) : repository.getId() == null )\r
{\r
return repository;\r
}\r
for ( java.util.Iterator i = getSyncedRepositories().iterator(); i.hasNext(); )\r
{\r
SyncedRepositoryConfiguration repository = (SyncedRepositoryConfiguration) i.next();\r
- if ( id != null ? !id.equals( repository.getId() ) : repository.getId() != null )\r
+ if ( id != null ? id.equals( repository.getId() ) : repository.getId() == null )\r
{\r
return repository;\r
}\r
for ( java.util.Iterator i = getProxiedRepositories().iterator(); i.hasNext(); )\r
{\r
ProxiedRepositoryConfiguration repository = (ProxiedRepositoryConfiguration) i.next();\r
- if ( id != null ? !id.equals( repository.getId() ) : repository.getId() != null )\r
+ if ( id != null ? id.equals( repository.getId() ) : repository.getId() == null )\r
{\r
return repository;\r
}\r