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) {
|
public void println(Object... objects) {
|
||||||
print(objects);
|
print(objects);
|
||||||
println();
|
printLineSeparator();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void println() {
|
private void printLineSeparator() {
|
||||||
out.append(System.getProperty("line.separator"));
|
out.append(System.getProperty("line.separator"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ public class Printer {
|
|||||||
|
|
||||||
public void printlnWithNoIndent(Object... objects) {
|
public void printlnWithNoIndent(Object... objects) {
|
||||||
printWithNoIndent(objects);
|
printWithNoIndent(objects);
|
||||||
println();
|
printLineSeparator();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void pushIndent() {
|
public void pushIndent() {
|
||||||
|
|||||||
Reference in New Issue
Block a user