@Test public void testPrependEachLineWithWriter() throws Exception { StringUtils.prependEachLine(getWriter(), "1\n2\n3", " "); assertWriter(" 1\n 2\n 3"); }
@SuppressWarnings({"SameParameterValue"}) public static String prependEachLine(String s, String prependWith) { StringWriter sw = new StringWriter(s.length()+(prependWith.length()*20)); prependEachLine(new PrintWriter(sw), s, prependWith); return sw.toString(); }
StringUtils { @SuppressWarnings({"SameParameterValue"}) public static String prependEachLine(String s, String prependWith) { StringWriter sw = new StringWriter(s.length()+(prependWith.length()*20)); prependEachLine(new PrintWriter(sw), s, prependWith); return sw.toString(); } }
StringUtils { @SuppressWarnings({"SameParameterValue"}) public static String prependEachLine(String s, String prependWith) { StringWriter sw = new StringWriter(s.length()+(prependWith.length()*20)); prependEachLine(new PrintWriter(sw), s, prependWith); return sw.toString(); }  }
StringUtils { @SuppressWarnings({"SameParameterValue"}) public static String prependEachLine(String s, String prependWith) { StringWriter sw = new StringWriter(s.length()+(prependWith.length()*20)); prependEachLine(new PrintWriter(sw), s, prependWith); return sw.toString(); }  @SuppressWarnings({"SameParameterValue", "SameParameterValue"}) static String align(String s, int width, int alignment); static String align(String s, int width, char paddingChar, int alignment); static void align(PrintWriter output, String s, int width, int alignment); static void align(PrintWriter output, String s, int width, char paddingChar, int alignment); static String multiply(char c, int count); static String multiply(String s, int count); static void multiply(PrintWriter output, char c, int count); @SuppressWarnings({"SameParameterValue"}) static void multiply(PrintWriter output, String s, int count); @SuppressWarnings({"SameParameterValue"}) static String prependEachLine(String s, String prependWith); static void prependEachLine(PrintWriter output, String s, String prependWith); }
StringUtils { @SuppressWarnings({"SameParameterValue"}) public static String prependEachLine(String s, String prependWith) { StringWriter sw = new StringWriter(s.length()+(prependWith.length()*20)); prependEachLine(new PrintWriter(sw), s, prependWith); return sw.toString(); }  @SuppressWarnings({"SameParameterValue", "SameParameterValue"}) static String align(String s, int width, int alignment); static String align(String s, int width, char paddingChar, int alignment); static void align(PrintWriter output, String s, int width, int alignment); static void align(PrintWriter output, String s, int width, char paddingChar, int alignment); static String multiply(char c, int count); static String multiply(String s, int count); static void multiply(PrintWriter output, char c, int count); @SuppressWarnings({"SameParameterValue"}) static void multiply(PrintWriter output, String s, int count); @SuppressWarnings({"SameParameterValue"}) static String prependEachLine(String s, String prependWith); static void prependEachLine(PrintWriter output, String s, String prependWith); static final int ALIGN_LEFT; static final int ALIGN_CENTER; static final int ALIGN_RIGHT; }