Code reformat

This commit is contained in:
2020-09-02 00:05:03 -07:00
parent 8e0252f49e
commit 05b1f8ad01
12 changed files with 228 additions and 96 deletions

View File

@@ -26,7 +26,7 @@ public final class CommonMarkHelper {
if (parent1 == parent2 && parent1 instanceof Paragraph) {
document = new Document();
Node child = parent1.getFirstChild();
while(child != null) {
while (child != null) {
Node nextChild = child.getNext();
document.appendChild(child);
child = nextChild;//child.getNext();

View File

@@ -20,7 +20,7 @@ public final class StringHelper {
int length = strings.size();
if (length < 1) {
return "";
} else {
} else {
StringBuilder sb = new StringBuilder();
boolean isFirst = true;
for (String element : strings) {
@@ -46,7 +46,7 @@ public final class StringHelper {
StringBuilder sb = new StringBuilder();
int index = 0;
int lastIndex = length - 1;
for(String element : strings) {
for (String element : strings) {
if (index > 0 && index < lastIndex) {
sb.append(delimiter);
} else if (index > 0 && index >= lastIndex) {