From da571dbe71d00fa88f5959d1f907c744eb1feae7 Mon Sep 17 00:00:00 2001 From: Lanchon Date: Thu, 14 Jun 2018 07:59:04 -0300 Subject: [PATCH] Use similar formatting for section arrays --- .../org/jf/dexlib2/writer/pool/DexPool.java | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/DexPool.java b/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/DexPool.java index eb73ea8c..62ebb940 100644 --- a/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/DexPool.java +++ b/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/DexPool.java @@ -57,9 +57,20 @@ public class DexPool extends DexWriter { - private final Markable[] sections = new Markable[] { - stringSection, typeSection, protoSection, fieldSection, methodSection, classSection, callSiteSection, - methodHandleSection, typeListSection, annotationSection, annotationSetSection, encodedArraySection + private final BasePool[] sections = new BasePool[] { + stringSection, + typeSection, + protoSection, + fieldSection, + methodSection, + classSection, + callSiteSection, + methodHandleSection, + + typeListSection, + annotationSection, + annotationSetSection, + encodedArraySection, }; public DexPool(Opcodes opcodes) {