@Test public void should_get_file_extension() { final String resource = resourceSuffix(Paths.get("foo/bar/hello.yml")); Assertions.assertThat(resource).isEqualTo(".yml"); }
static String resourceSuffix(Path path) { final String name = fileName(path); return name.substring(name.lastIndexOf(".")); }
FileUtils { static String resourceSuffix(Path path) { final String name = fileName(path); return name.substring(name.lastIndexOf(".")); } }
FileUtils { static String resourceSuffix(Path path) { final String name = fileName(path); return name.substring(name.lastIndexOf(".")); }  }
FileUtils { static String resourceSuffix(Path path) { final String name = fileName(path); return name.substring(name.lastIndexOf(".")); }  static boolean isResourceAllowed(Path path, String[] resourceNames, String[] resourceSuffixes); }
FileUtils { static String resourceSuffix(Path path) { final String name = fileName(path); return name.substring(name.lastIndexOf(".")); }  static boolean isResourceAllowed(Path path, String[] resourceNames, String[] resourceSuffixes);  }