@Test public void testUnescapedWindowsPathSeparators() throws Exception { assertThat(ImportPath.hasNotEscapedWindowsPathSeparator("c:\\path\\to\\file")).isTrue(); assertThat(ImportPath.hasNotEscapedWindowsPathSeparator("c:/path/to\\file")).isTrue(); assertThat(ImportPath.hasNotEscapedWindowsPathSeparator("c:/path/to/file")).isFalse(); assertThat(ImportPath.hasNotEscapedWindowsPathSeparator("c:/path/to/file\\ with\\ spaces")).isFalse(); }
public static boolean hasNotEscapedWindowsPathSeparator(final String path) { return UNESCAPED_WINDOWS_PATH_SEPARATOR.matcher(path).find(); }
ImportPath { public static boolean hasNotEscapedWindowsPathSeparator(final String path) { return UNESCAPED_WINDOWS_PATH_SEPARATOR.matcher(path).find(); } }
ImportPath { public static boolean hasNotEscapedWindowsPathSeparator(final String path) { return UNESCAPED_WINDOWS_PATH_SEPARATOR.matcher(path).find(); } ImportPath(final String path, final boolean isAbsolute); }
ImportPath { public static boolean hasNotEscapedWindowsPathSeparator(final String path) { return UNESCAPED_WINDOWS_PATH_SEPARATOR.matcher(path).find(); } ImportPath(final String path, final boolean isAbsolute); static boolean hasNotEscapedWindowsPathSeparator(final String path); static ImportPath from(final String path); String getPath(); boolean isAbsolute(); }
ImportPath { public static boolean hasNotEscapedWindowsPathSeparator(final String path) { return UNESCAPED_WINDOWS_PATH_SEPARATOR.matcher(path).find(); } ImportPath(final String path, final boolean isAbsolute); static boolean hasNotEscapedWindowsPathSeparator(final String path); static ImportPath from(final String path); String getPath(); boolean isAbsolute();  }