MCPcopy Create free account
hub / github.com/apache/pig / resolvesToJar

Method resolvesToJar

src/org/apache/pig/parser/RegisterResolver.java:97–100  ·  view source on GitHub ↗

@param uri @return True if the uri is a jar or an ivy coordinate

(URI uri)

Source from the content-addressed store, hash-verified

95 * @return True if the uri is a jar or an ivy coordinate
96 */
97 private boolean resolvesToJar(URI uri) {
98 String scheme = uri.getScheme();
99 return (uri.toString().endsWith("jar") || scheme != null && scheme.toLowerCase().equals("ivy"));
100 }
101
102}

Callers 1

parseRegisterMethod · 0.95

Calls 2

toStringMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected