fix compilation issues

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-02-26 08:08:13 +00:00
parent a4544331a8
commit ec49aa3e4b
3 changed files with 10 additions and 16 deletions

View File

@ -217,7 +217,6 @@ public class MockRepositorySessionFactory
} }
public void save( ) public void save( )
throws MetadataRepositoryException
{ {
//To change body of implemented methods use File | Settings | File Templates. //To change body of implemented methods use File | Settings | File Templates.
} }
@ -228,7 +227,6 @@ public class MockRepositorySessionFactory
} }
public void revert( ) public void revert( )
throws MetadataRepositoryException
{ {
//To change body of implemented methods use File | Settings | File Templates. //To change body of implemented methods use File | Settings | File Templates.
} }

View File

@ -217,7 +217,6 @@ public class MockRepositorySessionFactory
} }
public void save( ) public void save( )
throws MetadataRepositoryException
{ {
//To change body of implemented methods use File | Settings | File Templates. //To change body of implemented methods use File | Settings | File Templates.
} }
@ -228,7 +227,6 @@ public class MockRepositorySessionFactory
} }
public void revert( ) public void revert( )
throws MetadataRepositoryException
{ {
//To change body of implemented methods use File | Settings | File Templates. //To change body of implemented methods use File | Settings | File Templates.
} }

View File

@ -42,26 +42,26 @@ import java.util.List;
public class MockRepositorySessionFactory public class MockRepositorySessionFactory
implements RepositorySessionFactory implements RepositorySessionFactory
{ {
public RepositorySession createSession( ) public RepositorySession createSession()
{ {
return new RepositorySession( null, null ) return new RepositorySession( null, null )
{ {
@Override @Override
public void close( ) public void close()
{ {
return; return;
} }
@Override @Override
public void save( ) public void save()
{ {
// no op // no op
} }
@Override @Override
public MetadataRepository getRepository( ) public MetadataRepository getRepository()
{ {
return new MetadataRepository( ) return new MetadataRepository()
{ {
public void updateProject( String repositoryId, ProjectMetadata project ) public void updateProject( String repositoryId, ProjectMetadata project )
throws MetadataRepositoryException throws MetadataRepositoryException
@ -92,7 +92,7 @@ public class MockRepositorySessionFactory
public List<String> getMetadataFacets( String repositoryId, String facetId ) public List<String> getMetadataFacets( String repositoryId, String facetId )
throws MetadataRepositoryException throws MetadataRepositoryException
{ {
return Collections.emptyList( ); return Collections.emptyList();
} }
public MetadataFacet getMetadataFacet( String repositoryId, String facetId, String name ) public MetadataFacet getMetadataFacet( String repositoryId, String facetId, String name )
@ -126,7 +126,7 @@ public class MockRepositorySessionFactory
return null; //To change body of implemented methods use File | Settings | File Templates. return null; //To change body of implemented methods use File | Settings | File Templates.
} }
public Collection<String> getRepositories( ) public Collection<String> getRepositories()
throws MetadataRepositoryException throws MetadataRepositoryException
{ {
return null; //To change body of implemented methods use File | Settings | File Templates. return null; //To change body of implemented methods use File | Settings | File Templates.
@ -216,19 +216,17 @@ public class MockRepositorySessionFactory
return null; //To change body of implemented methods use File | Settings | File Templates. return null; //To change body of implemented methods use File | Settings | File Templates.
} }
public void save( ) public void save()
throws MetadataRepositoryException
{ {
//To change body of implemented methods use File | Settings | File Templates. //To change body of implemented methods use File | Settings | File Templates.
} }
public void close( ) public void close()
{ {
//To change body of implemented methods use File | Settings | File Templates. //To change body of implemented methods use File | Settings | File Templates.
} }
public void revert( ) public void revert()
throws MetadataRepositoryException
{ {
//To change body of implemented methods use File | Settings | File Templates. //To change body of implemented methods use File | Settings | File Templates.
} }