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

Method validateFragment

lib/java/net/URI.java:462–470  ·  view source on GitHub ↗
(String uri, String fragment, int index)

Source from the content-addressed store, hash-verified

460 }
461
462 private void validateFragment(String uri, String fragment, int index)
463 throws URISyntaxException {
464 try {
465 URIEncoderDecoder.validate(fragment, allLegal);
466 } catch (URISyntaxException e) {
467 throw new URISyntaxException(uri, Messages.getString("luni.8A", e //$NON-NLS-1$
468 .getReason()), index + e.getIndex());
469 }
470 }
471
472 /**
473 * determine the host, port and userinfo if the authority parses

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