From ec49aa3e4b9567518cac2c7cd5ab041a8cd090c2 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 26 Feb 2012 08:08:13 +0000 Subject: [PATCH] fix compilation issues git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293769 13f79535-47bb-0310-9956-ffa450edef68 --- .../mock/MockRepositorySessionFactory.java | 2 -- .../mock/MockRepositorySessionFactory.java | 2 -- .../mock/MockRepositorySessionFactory.java | 22 +++++++++---------- 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java index 17921ed0a..fa175d670 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java @@ -217,7 +217,6 @@ public class MockRepositorySessionFactory } public void save( ) - throws MetadataRepositoryException { //To change body of implemented methods use File | Settings | File Templates. } @@ -228,7 +227,6 @@ public class MockRepositorySessionFactory } public void revert( ) - throws MetadataRepositoryException { //To change body of implemented methods use File | Settings | File Templates. } diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java index a7fae93d2..f753ce9ea 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java @@ -217,7 +217,6 @@ public class MockRepositorySessionFactory } public void save( ) - throws MetadataRepositoryException { //To change body of implemented methods use File | Settings | File Templates. } @@ -228,7 +227,6 @@ public class MockRepositorySessionFactory } public void revert( ) - throws MetadataRepositoryException { //To change body of implemented methods use File | Settings | File Templates. } diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java index b05d55fec..063fa4b4b 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java @@ -42,26 +42,26 @@ import java.util.List; public class MockRepositorySessionFactory implements RepositorySessionFactory { - public RepositorySession createSession( ) + public RepositorySession createSession() { return new RepositorySession( null, null ) { @Override - public void close( ) + public void close() { return; } @Override - public void save( ) + public void save() { // no op } @Override - public MetadataRepository getRepository( ) + public MetadataRepository getRepository() { - return new MetadataRepository( ) + return new MetadataRepository() { public void updateProject( String repositoryId, ProjectMetadata project ) throws MetadataRepositoryException @@ -92,7 +92,7 @@ public class MockRepositorySessionFactory public List getMetadataFacets( String repositoryId, String facetId ) throws MetadataRepositoryException { - return Collections.emptyList( ); + return Collections.emptyList(); } 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. } - public Collection getRepositories( ) + public Collection getRepositories() throws MetadataRepositoryException { 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. } - public void save( ) - throws MetadataRepositoryException + public void save() { //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. } - public void revert( ) - throws MetadataRepositoryException + public void revert() { //To change body of implemented methods use File | Settings | File Templates. } -- 2.39.5