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

Method validatePath

lib/java/net/URI.java:441–449  ·  view source on GitHub ↗
(String uri, String path, int index)

Source from the content-addressed store, hash-verified

439 }
440
441 private void validatePath(String uri, String path, int index)
442 throws URISyntaxException {
443 try {
444 URIEncoderDecoder.validate(path, "/@" + someLegal); //$NON-NLS-1$
445 } catch (URISyntaxException e) {
446 throw new URISyntaxException(uri, Messages.getString("luni.88", e //$NON-NLS-1$
447 .getReason()), index + e.getIndex());
448 }
449 }
450
451 private void validateQuery(String uri, String query, int index)
452 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