@Test public void testHasTrailingSlash() { assertTrue(StringUtils.hasTrailingSlash("/")); assertTrue(StringUtils.hasTrailingSlash("test/")); assertTrue(StringUtils.hasTrailingSlash(" assertTrue(StringUtils.hasTrailingSlash("test assertTrue(StringUtils.hasTrailingSlash("/test/")); assertFalse(StringUtils.hasTrailingSlash(null)); assertFalse(StringUtils.hasTrailingSlash("")); assertFalse(StringUtils.hasTrailingSlash("test")); assertFalse(StringUtils.hasTrailingSlash("/test")); assertFalse(StringUtils.hasTrailingSlash(" }
public static boolean hasTrailingSlash(final String s) { return s != null && isNotBlank(s) && SLASH == s.charAt(s.length() - 1); }
StringUtils { public static boolean hasTrailingSlash(final String s) { return s != null && isNotBlank(s) && SLASH == s.charAt(s.length() - 1); } }
StringUtils { public static boolean hasTrailingSlash(final String s) { return s != null && isNotBlank(s) && SLASH == s.charAt(s.length() - 1); }  }
StringUtils { public static boolean hasTrailingSlash(final String s) { return s != null && isNotBlank(s) && SLASH == s.charAt(s.length() - 1); }  static boolean isBlank(String s); static boolean isNotBlank(String s); static boolean hasLeadingSlash(final String s); static boolean hasTrailingSlash(final String s); static String[] splitBySlash(final String s); static int countSlashes(final String s); static String removePathPrefix(String prefix, String url); }
StringUtils { public static boolean hasTrailingSlash(final String s) { return s != null && isNotBlank(s) && SLASH == s.charAt(s.length() - 1); }  static boolean isBlank(String s); static boolean isNotBlank(String s); static boolean hasLeadingSlash(final String s); static boolean hasTrailingSlash(final String s); static String[] splitBySlash(final String s); static int countSlashes(final String s); static String removePathPrefix(String prefix, String url);  }