From ddbb6cdaf499915affabe440ab4c0da1fc482202 Mon Sep 17 00:00:00 2001 From: olivier lamy Date: Sat, 24 Jun 2017 09:06:22 +1000 Subject: [PATCH] cosmetic change :-) Signed-off-by: olivier lamy --- .../repository/AbstractMetadataRepositoryTest.java | 9 +-------- .../repository/jcr/JcrMetadataRepositoryTest.java | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java index 75c961fbc..4700d5af0 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java +++ b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java @@ -827,14 +827,7 @@ public abstract class AbstractMetadataRepositoryTest Collection artifacts = repository.getArtifacts( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION ); ArrayList actual = new ArrayList<>( artifacts ); - Collections.sort( actual, new Comparator() - { - @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 ); } diff --git a/archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java b/archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java index c364efe74..debf5c907 100644 --- a/archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java +++ b/archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java @@ -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; -- 2.39.5