* commit 'ad16968d506840a1c1824c4ab6b5c181c8e04086': LayoutLib: Skip classes from java package. [DO NOT MERGE]
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user