sandbox/src/main/java/org/robolectric/internal/bytecode/SandboxClassLoader.java
private static URL[] parseJavaClassPath() {
    ImmutableList.Builder<URL> urls = ImmutableList.builder();
    for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) {
      try {
        try {
          urls.add(new File(entry).toURI().toURL());
        } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
          urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
        }
      } catch (MalformedURLException e) {
        Logger.strict("malformed classpath entry: " + entry, e);
      }
    }
    return urls.build().toArray(new URL[0]);
  }
private static URL[] parseJavaClassPath() {
    ImmutableList.Builder<URL> urls = ImmutableList.builder();
    for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) {
      try {
        try {
          urls.add(new File(entry).toURI().toURL());
        } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
          urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
        }
      } catch (MalformedURLException e) {
        Logger.strict("malformed classpath entry: " + entry, e);
      }
    }
    return urls.build().toArray(new URL[0]);
  }
private static URL [ ] parseJavaClassPath ( ) { ImmutableList . Builder < URL > urls = ImmutableList . builder ( ) ; for ( String entry : Splitter . on ( PATH_SEPARATOR . value ( ) ) . split ( JAVA_CLASS_PATH . value ( ) ) ) { try { try { urls . add ( new File ( entry ) . toURI ( ) . toURL ( ) ) ; } catch ( SecurityException e ) { // File.toURI checks to see if the file is a directory urls . add ( new URL ( "file" , null , new File ( entry ) . getAbsolutePath ( ) ) ) ; } } catch ( MalformedURLException e ) { Logger . strict ( "malformed classpath entry: " + entry , e ) ; } } return urls . build ( ) . toArray ( new URL [ 0 ] ) ; }
TODO(b/65488446): Use a public API once one is available.
TODO ( b / 65488446 ) : Use a public API once one is available .