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
The following commit(s) were added to refs/heads/master by this push:
new e62fa52 Remove unnecessary String creation.
e62fa52 is described below
commit e62fa52cbad9d6bb4c6f669740f5ffd35c48772e
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Mar 1 08:24:55 2021 -0500
Remove unnecessary String creation.
---
.../test/java/org/apache/commons/vfs2/provider/local/TempFileTests.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/TempFileTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/TempFileTests.java
index eedf038..3c16a03 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/TempFileTests.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/TempFileTests.java
@@ -35,7 +35,7 @@ public class TempFileTests extends AbstractProviderTestCase {
*/
@Test
public void testLocalFile() throws Exception {
- final String prefix = new String("\u0074\u0065\u0074");
+ final String prefix = "\u0074\u0065\u0074";
final File file = File.createTempFile(prefix + "-", "-" + prefix);
assertTrue(file.exists());
final URI uri = file.toURI();