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

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

View File

@@ -307,7 +307,9 @@ public class DependencyFinder {
try {
// 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;
}
} catch (ClassNotFoundException e) {