]> source.dussan.org Git - archiva.git/commitdiff
fix compilation issues
authorOlivier Lamy <olamy@apache.org>
Sun, 26 Feb 2012 08:08:13 +0000 (08:08 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 26 Feb 2012 08:08:13 +0000 (08:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293769 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java
archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java

index 17921ed0a05e1ba78f53ad13bcc5f25f51a536d3..fa175d67001dd95ddfdb93d1088503f7f90c4448 100644 (file)
@@ -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.
                     }
index a7fae93d2ebb681d1d18443e6c3b49af45729bef..f753ce9ead87de18d05e213f4814540b02bd9830 100644 (file)
@@ -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.
                     }
index b05d55fec5a8be4e71d91618a67516269bcc459a..063fa4b4bf8c60dbb43c7d115eedcbae39fcdf85 100644 (file)
@@ -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<String> 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<String> getRepositories( )
+                    public Collection<String> 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.
                     }