Rename println() method to prevent name collisions with the existing vararg method
This commit is contained in:
@@ -32,10 +32,10 @@ public class Printer {
|
||||
|
||||
public void println(Object... objects) {
|
||||
print(objects);
|
||||
println();
|
||||
printLineSeparator();
|
||||
}
|
||||
|
||||
private void println() {
|
||||
private void printLineSeparator() {
|
||||
out.append(System.getProperty("line.separator"));
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Printer {
|
||||
|
||||
public void printlnWithNoIndent(Object... objects) {
|
||||
printWithNoIndent(objects);
|
||||
println();
|
||||
printLineSeparator();
|
||||
}
|
||||
|
||||
public void pushIndent() {
|
||||
|
||||
Reference in New Issue
Block a user