equal
deleted
inserted
replaced
534 // |
534 // |
535 private static void checkPath(String s, String scheme, String path) |
535 private static void checkPath(String s, String scheme, String path) |
536 throws URISyntaxException |
536 throws URISyntaxException |
537 { |
537 { |
538 if (scheme != null) { |
538 if (scheme != null) { |
539 if ((path != null) |
539 if (path != null && !path.isEmpty() && path.charAt(0) != '/') |
540 && ((path.length() > 0) && (path.charAt(0) != '/'))) |
|
541 throw new URISyntaxException(s, |
540 throw new URISyntaxException(s, |
542 "Relative path in absolute URI"); |
541 "Relative path in absolute URI"); |
543 } |
542 } |
544 } |
543 } |
545 |
544 |