Commit
Checkstyle fixes.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
/* | ||
* Copyright 2013 MovingBlocks | ||
* | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ public class LineBuilder { | |
private final int maxWidth; | ||
private List<String> lines = Lists.newArrayList(); | ||
|
||
private int currentLineLength = 0; | ||
private int currentLineLength; | ||
private StringBuilder lineBuilder = new StringBuilder(); | ||
|
||
public LineBuilder(Font font, int maxWidth) { | ||
|
@@ -48,7 +48,8 @@ public static List<String> getLines(Font font, String text, int maxWidth) { | |
|
||
public void addText(String text) { | ||
List<String> paragraphs = Arrays.asList(text.split("\\r?\\n")); | ||
for (String remainder : paragraphs) { | ||
for (String paragraph : paragraphs) { | ||
String remainder = paragraph; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
immortius
Author
Member
|
||
while (!remainder.isEmpty()) { | ||
String[] split = remainder.split(" ", 2); | ||
String word = split[0]; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,7 +153,7 @@ public boolean randomBoolean() { | |
public String randomCharacterString(int length) { | ||
char[] randomChars = new char[length]; | ||
for (int i = 0; i < length; i++) { | ||
randomChars[i] = VALID_CHARS[VALID_CHARS.length * TeraMath.fastAbs(randomDouble())]; | ||
randomChars[i] = VALID_CHARS[randomInt(VALID_CHARS.length)]; | ||
This comment has been minimized.
Sorry, something went wrong.
socram8888
Contributor
|
||
} | ||
return new String(randomChars); | ||
} | ||
|
Is this necessary ? :-)