diff options
author | Eric Barboni <skygo@apache.org> | 2020-02-17 20:26:21 +0100 |
---|---|---|
committer | Martin <m.stockhammer@web.de> | 2020-02-17 22:49:18 +0100 |
commit | c4da6e890f4cdcb13fee523e2289ce195b9694a6 (patch) | |
tree | 4ec56eb208ab3b249747e22f99eb897d5c20f20c /archiva-modules | |
parent | 23737aaa3d19a79eb9471e4e9d3e67b92b4594ef (diff) | |
download | archiva-c4da6e890f4cdcb13fee523e2289ce195b9694a6.tar.gz archiva-c4da6e890f4cdcb13fee523e2289ce195b9694a6.zip |
use nio.Paths instead of io.File
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java index 8dfcdb22d..4632dbbae 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java @@ -19,7 +19,6 @@ package org.apache.archiva.consumers.core.repository; * under the License. */ -import java.io.File; import org.apache.archiva.metadata.model.ArtifactMetadata; import org.apache.archiva.metadata.repository.MetadataRepository; import org.apache.archiva.metadata.repository.RepositorySession; @@ -164,8 +163,7 @@ public abstract class AbstractRepositoryPurgeTest atf.setRetentionPeriod( Period.ofDays( TEST_DAYS_OLDER) ); String path = AbstractRepositoryPurgeTest.fixPath( basePath.resolve( repoId ).toAbsolutePath().toString() ); - File file = new File( path ); - config.setLocation( file.toURI() ); + config.setLocation( Paths.get( path ).toFile().toURI() ); atf.setDeleteReleasedSnapshots( true ); atf.setRetentionCount( TEST_RETENTION_COUNT ); |