Exclude java namespace classes from layoutlib

Such classes can't be loaded anyway. No point including them

Change-Id: I26934014de96aa59f0d4aef59f61d1e4f71b86ea
This commit is contained in:
Deepanshu Gupta
2016-03-23 12:39:27 -07:00
parent 61ad7ad7fd
commit fa5f55fe90

View File

@@ -438,7 +438,8 @@ public class AsmAnalyzer {
try {
// exclude classes that are part of the default JRE (the one executing this program)
if (getClass().getClassLoader().loadClass(className) != null) {
if (className.startsWith("java.") ||
getClass().getClassLoader().loadClass(className) != null) {
return;
}
} catch (ClassNotFoundException e) {