From 4a0febd8627f446993912cb8022ba4702270ee89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Fri, 2 Dec 2011 02:49:46 +0100 Subject: [PATCH] ResScalarValue: removed serializeXmlBody(). It didn't make much sense. --- .../java/brut/androlib/res/data/value/ResScalarValue.java | 7 +------ .../java/brut/androlib/res/data/value/ResStringValue.java | 6 ------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java index de8270e9..84636fa3 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java +++ b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java @@ -64,7 +64,7 @@ public abstract class ResScalarValue extends ResValue serializeExtraXmlAttrs(serializer, res); - String body = serializeXmlBody(serializer, res); + String body = encodeAsResXmlValue(); if (! body.isEmpty()) { serializer.ignorableWhitespace(body); } @@ -76,11 +76,6 @@ public abstract class ResScalarValue extends ResValue return mType; } - protected String serializeXmlBody(XmlSerializer serializer, - ResResource res) throws IOException, AndrolibException { - return encodeAsResXmlValue(); - } - protected void serializeExtraXmlAttrs(XmlSerializer serializer, ResResource res) throws IOException { } diff --git a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResStringValue.java b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResStringValue.java index 0e5db398..e60e0e02 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResStringValue.java +++ b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResStringValue.java @@ -51,12 +51,6 @@ public class ResStringValue extends ResScalarValue { throw new UnsupportedOperationException(); } - @Override - protected String serializeXmlBody(XmlSerializer serializer, ResResource res) - throws IOException, AndrolibException { - return ResXmlEncoders.encodeAsXmlValue(mRawValue); - } - @Override protected void serializeExtraXmlAttrs(XmlSerializer serializer, ResResource res) throws IOException {