MCPcopy Index your code
hub / github.com/beanshell/beanshell / getRTJarPath

Method getRTJarPath

src/bsh/classpath/BshClassPath.java:671–684  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

669
670
671 private static String getRTJarPath()
672 {
673 String urlString =
674 Class.class.getResource("/java/lang/String.class").toExternalForm();
675
676 if ( !urlString.startsWith("jar:file:") )
677 return null;
678
679 int i = urlString.indexOf("!");
680 if ( i == -1 )
681 return null;
682
683 return urlString.substring( "jar:file:".length(), i );
684 }
685
686 public abstract static class ClassSource {
687 Object source;

Callers 1

getBootClassPathMethod · 0.95

Calls 1

getResourceMethod · 0.45

Tested by

no test coverage detected