LayoutLib: Skip classes from java package. [DO NOT MERGE]
Classes in "java" package can't be defined at runtime anyway. No use
including them in LayoutLib.
Change-Id: I7e7c46f0d74e32c893b23093828569b4fa5e3a73
(cherry picked from commit 86caef1892)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user