]> source.dussan.org Git - archiva.git/commitdiff
cosmetic change :-)
authorolivier lamy <olamy@apache.org>
Fri, 23 Jun 2017 23:06:22 +0000 (09:06 +1000)
committerolivier lamy <olamy@apache.org>
Fri, 23 Jun 2017 23:06:22 +0000 (09:06 +1000)
Signed-off-by: olivier lamy <olamy@apache.org>
archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java
archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java

index 75c961fbc2e9dd797aec55fad5861f989f19a342..4700d5af02949f4996a445e7b94f69bf42259566 100644 (file)
@@ -827,14 +827,7 @@ public abstract class AbstractMetadataRepositoryTest
         Collection<ArtifactMetadata> artifacts =
             repository.getArtifacts( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION );
         ArrayList<ArtifactMetadata> actual = new ArrayList<>( artifacts );
-        Collections.sort( actual, new Comparator<ArtifactMetadata>()
-        {
-            @Override
-            public int compare( ArtifactMetadata o1, ArtifactMetadata o2 )
-            {
-                return o1.getId().compareTo( o2.getId() );
-            }
-        } );
+        Collections.sort( actual,( o1, o2 ) -> o1.getId().compareTo( o2.getId() ) );
         assertEquals( Arrays.asList( artifact1, artifact2 ), actual );
     }
 
index c364efe749982ef40569c620320c82dd580e27a9..debf5c907b0d92261fc4c73962cd28f8b5388a1f 100644 (file)
@@ -26,7 +26,6 @@ import org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.BeforeClass;
-import org.junit.Test;
 import org.springframework.context.ApplicationContext;
 
 import java.io.File;