MCPcopy Create free account
hub / github.com/davidgiven/luje / validateAuthority

Method validateAuthority

lib/java/net/URI.java:431–439  ·  view source on GitHub ↗
(String uri, String authority, int index)

Source from the content-addressed store, hash-verified

429 }
430
431 private void validateAuthority(String uri, String authority, int index)
432 throws URISyntaxException {
433 try {
434 URIEncoderDecoder.validate(authority, "@[]" + someLegal); //$NON-NLS-1$
435 } catch (URISyntaxException e) {
436 throw new URISyntaxException(uri, Messages.getString("luni.87", e //$NON-NLS-1$
437 .getReason()), index + e.getIndex());
438 }
439 }
440
441 private void validatePath(String uri, String path, int index)
442 throws URISyntaxException {

Callers 1

parseURIMethod · 0.95

Calls 4

validateMethod · 0.95
getStringMethod · 0.95
getReasonMethod · 0.80
getIndexMethod · 0.80

Tested by

no test coverage detected