You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/11/27 13:41:38 UTC

[commons-vfs] 06/06: Format, inline single-use local variable.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git

commit 6c25a034487c93284b6f4b62e82665766ed94ca2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 27 08:41:29 2021 -0500

    Format, inline single-use local variable.
---
 .../java/org/apache/commons/vfs2/cache/LRUFilesCacheTestCase.java   | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTestCase.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTestCase.java
index 086b10d..1333f18 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTestCase.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTestCase.java
@@ -16,8 +16,6 @@
  */
 package org.apache.commons.vfs2.cache;
 
-import java.io.File;
-
 import org.apache.commons.vfs2.AbstractProviderTestConfig;
 import org.apache.commons.vfs2.AbstractVfsTestCase;
 import org.apache.commons.vfs2.CacheTestSuite;
@@ -31,6 +29,7 @@ import junit.framework.Test;
  * Tests the {@link LRUFilesCache} using {@link LRUFilesCacheTests}.
  */
 public class LRUFilesCacheTestCase extends AbstractProviderTestConfig {
+
     public static Test suite() throws Exception {
         final CacheTestSuite suite = new CacheTestSuite(new LRUFilesCacheTestCase());
         suite.addTests(LRUFilesCacheTests.class);
@@ -44,7 +43,6 @@ public class LRUFilesCacheTestCase extends AbstractProviderTestConfig {
 
     @Override
     public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception {
-        final File testDir = AbstractVfsTestCase.getTestDirectoryFile();
-        return manager.toFileObject(testDir);
+        return manager.toFileObject(AbstractVfsTestCase.getTestDirectoryFile());
     }
 }