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 0ffeb1f4 Use Java 5's String#contains(CharSequence)
0ffeb1f4 is described below
commit 0ffeb1f4002d2f6e524873b5073e55839c7eb169
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Mar 22 09:53:49 2024 -0400
Use Java 5's String#contains(CharSequence)
---
.../org/apache/commons/vfs2/provider/local/WindowsFileNameTests.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/WindowsFileNameTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/WindowsFileNameTests.java
index 69eb98da..dd605812 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/WindowsFileNameTests.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/WindowsFileNameTests.java
@@ -101,7 +101,7 @@ public class WindowsFileNameTests extends
AbstractProviderTestCase {
fail("should not accept root " + name);
} catch (final FileSystemException ex) {
assertEquals("vfs.provider/invalid-absolute-uri.error",
ex.getCode());
- assertTrue(ex.toString().indexOf(name) >= 0);
+ assertTrue(ex.toString().contains(name));
}
}
}