From c1a8aaf0f34997a677cb9ec1223df0d70b28bd3d Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Thu, 3 Mar 2016 10:56:39 -0800 Subject: dexdeps: Ignore static initializers on analysis. CTS's DexDepsXmlHandler's xml parser will error out when it finds a name attribute with a value of "". Modify Output class to ignore static initializer elements to work around this. Change-Id: I0ecbd8d0f29336cb6acba08f457bebc014c0ad5c TICKET: CYNGNOS-2189 --- tools/dexdeps/src/com/android/dexdeps/Output.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tools/dexdeps/src/com/android/dexdeps/Output.java') diff --git a/tools/dexdeps/src/com/android/dexdeps/Output.java b/tools/dexdeps/src/com/android/dexdeps/Output.java index dbe3bc2da..40e2592da 100644 --- a/tools/dexdeps/src/com/android/dexdeps/Output.java +++ b/tools/dexdeps/src/com/android/dexdeps/Output.java @@ -216,9 +216,11 @@ public class Output { out.println(IN3 + ""); } else { - out.println(IN3 + ""); + if (!mref.getName().equals("")) { + out.println(IN3 + ""); + } } String[] args = mref.getArgumentTypeNames(); for (int j = 0; j < args.length; j++) { @@ -228,7 +230,9 @@ public class Output { if (constructor) { out.println(IN3 + ""); } else { - out.println(IN3 + ""); + if (!mref.getName().equals("")) { + out.println(IN3 + ""); + } } } } -- cgit v1.2.3