Package com.googlecode.d2j.dex
Class DexFix
- java.lang.Object
-
- com.googlecode.d2j.dex.DexFix
-
public final class DexFix extends java.lang.Object1. Dex omits the value of static-final field if it is the default value.2. static-final field init by zero, but assigned in clinit
this method is try to fix the problems.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfixStaticFinalFieldValue(com.googlecode.d2j.node.DexClassNode classNode)Target: Classstatic voidfixStaticFinalFieldValue(com.googlecode.d2j.node.DexFileNode dex)static voidfixTooLongStringConstant(com.googlecode.d2j.node.DexMethodNode methodNode)Target: Method
-
-
-
Method Detail
-
fixStaticFinalFieldValue
public static void fixStaticFinalFieldValue(com.googlecode.d2j.node.DexFileNode dex)
-
fixStaticFinalFieldValue
public static void fixStaticFinalFieldValue(com.googlecode.d2j.node.DexClassNode classNode)
Target: Classinit value to default if the field is static and final, and the field is not init in clinit method
erase the default value if the field is init in clinit method
-
fixTooLongStringConstant
public static void fixTooLongStringConstant(com.googlecode.d2j.node.DexMethodNode methodNode)
Target: MethodFixes too long strings not being translated correctly
-
-