refactor: adjust line to fit 120 length line endings in /value (#3338)

This commit is contained in:
Connor Tumbleson 2023-09-18 06:18:44 -04:00 committed by GitHub
parent f3936cbd22
commit aea1d68dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 17 deletions

View File

@ -26,8 +26,7 @@ import org.xmlpull.v1.XmlSerializer;
import java.io.IOException;
public class ResAttr extends ResBagValue implements ResValuesXmlSerializable {
ResAttr(ResReferenceValue parentVal, int type, Integer min, Integer max,
Boolean l10n) {
ResAttr(ResReferenceValue parentVal, int type, Integer min, Integer max, Boolean l10n) {
super(parentVal);
mType = type;
mMin = min;

View File

@ -36,18 +36,15 @@ public class ResBagValue extends ResValue implements ResValuesXmlSerializable {
ResResource res) throws IOException, AndrolibException {
String type = res.getResSpec().getType().getName();
if ("style".equals(type)) {
new ResStyleValue(mParent, new Duo[0], null)
.serializeToResValuesXml(serializer, res);
new ResStyleValue(mParent, new Duo[0], null).serializeToResValuesXml(serializer, res);
return;
}
if ("array".equals(type)) {
new ResArrayValue(mParent, new Duo[0]).serializeToResValuesXml(
serializer, res);
new ResArrayValue(mParent, new Duo[0]).serializeToResValuesXml(serializer, res);
return;
}
if ("plurals".equals(type)) {
new ResPluralsValue(mParent, new Duo[0]).serializeToResValuesXml(
serializer, res);
new ResPluralsValue(mParent, new Duo[0]).serializeToResValuesXml(serializer, res);
return;
}

View File

@ -25,10 +25,8 @@ import org.xmlpull.v1.XmlSerializer;
import java.io.IOException;
public class ResPluralsValue extends ResBagValue implements
ResValuesXmlSerializable {
ResPluralsValue(ResReferenceValue parent,
Duo<Integer, ResScalarValue>[] items) {
public class ResPluralsValue extends ResBagValue implements ResValuesXmlSerializable {
ResPluralsValue(ResReferenceValue parent, Duo<Integer, ResScalarValue>[] items) {
super(parent);
mItems = new ResScalarValue[6];

View File

@ -25,7 +25,6 @@ import java.io.IOException;
import java.util.regex.Pattern;
public class ResStringValue extends ResScalarValue {
public ResStringValue(String value, int rawValue) {
this(value, rawValue, "string");
}

View File

@ -26,10 +26,8 @@ import org.xmlpull.v1.XmlSerializer;
import java.io.IOException;
import java.util.logging.Logger;
public class ResStyleValue extends ResBagValue implements
ResValuesXmlSerializable {
ResStyleValue(ResReferenceValue parent,
Duo<Integer, ResScalarValue>[] items, ResValueFactory factory) {
public class ResStyleValue extends ResBagValue implements ResValuesXmlSerializable {
ResStyleValue(ResReferenceValue parent, Duo<Integer, ResScalarValue>[] items, ResValueFactory factory) {
super(parent);
mItems = new Duo[items.length];