Merge "Exclude java namespace classes from layoutlib" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3e2b413dc7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user