am ad16968d: am 6eef1246: LayoutLib: Skip classes from java package. [DO NOT MERGE]

* commit 'ad16968d506840a1c1824c4ab6b5c181c8e04086':
  LayoutLib: Skip classes from java package. [DO NOT MERGE]
This commit is contained in:
Deepanshu Gupta
2015-08-26 20:20:05 +00:00
committed by Android Git Automerger

View File

@@ -307,7 +307,9 @@ public class DependencyFinder {
try { try {
// exclude classes that are part of the default JRE (the one executing this program) // exclude classes that are part of the default JRE (the one executing this program)
if (getClass().getClassLoader().loadClass(className) != null) { // or in java package (we won't be able to load them anyway).
if (className.startsWith("java.") ||
getClass().getClassLoader().loadClass(className) != null) {
return; return;
} }
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {