Apply autofixes
This commit is contained in:
parent
5357da3746
commit
dd6ee1bf60
15 changed files with 36 additions and 30 deletions
|
@ -39,11 +39,11 @@ class ByteArrayTag extends Tag {
|
|||
void prettyPrint(int indent, bool recurse) {
|
||||
String array = "";
|
||||
for (int b in value) {
|
||||
array += "${b}, ";
|
||||
array += "$b, ";
|
||||
}
|
||||
array = array.substring(0, array.length - 2);
|
||||
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: [${array}]");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: [$array]");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ class ByteTag extends Tag {
|
|||
@override
|
||||
void prettyPrint(int indent, bool recurse) {
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${value}");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: $value");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ class DoubleTag extends Tag {
|
|||
@override
|
||||
void prettyPrint(int indent, bool recurse) {
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${value}");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: $value");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,6 @@ class FloatTag extends Tag {
|
|||
@override
|
||||
void prettyPrint(int indent, bool recurse) {
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${value}");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: $value");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,11 +34,11 @@ class IntArrayTag extends Tag {
|
|||
void prettyPrint(int indent, bool recurse) {
|
||||
String array = "";
|
||||
for (int b in value) {
|
||||
array += "${b}, ";
|
||||
array += "$b, ";
|
||||
}
|
||||
array = array.substring(0, array.length - 2);
|
||||
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: [${array}]");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: [$array]");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,6 @@ class IntTag extends Tag {
|
|||
@override
|
||||
void prettyPrint(int indent, bool recurse) {
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${value}");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: $value");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,10 +45,11 @@ class ListTag extends Tag {
|
|||
}
|
||||
|
||||
Tag get(int index) {
|
||||
if (size() > index)
|
||||
if (size() > index) {
|
||||
return value[index];
|
||||
else
|
||||
} else {
|
||||
return EndTag();
|
||||
}
|
||||
}
|
||||
|
||||
void remove(Tag tag) {
|
||||
|
|
|
@ -42,11 +42,11 @@ class LongArrayTag extends Tag {
|
|||
void prettyPrint(int indent, bool recurse) {
|
||||
String array = "";
|
||||
for (int b in value) {
|
||||
array += "${b}, ";
|
||||
array += "$b, ";
|
||||
}
|
||||
array = array.substring(0, array.length - 2);
|
||||
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: [${array}]");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: [$array]");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,6 @@ class LongTag extends Tag {
|
|||
@override
|
||||
void prettyPrint(int indent, bool recurse) {
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${value}");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: $value");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,6 @@ class ShortTag extends Tag {
|
|||
@override
|
||||
void prettyPrint(int indent, bool recurse) {
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${value}");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: $value");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,6 @@ class StringTag extends Tag {
|
|||
@override
|
||||
void prettyPrint(int indent, bool recurse) {
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${value}");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: $value");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue