Formatting changes (inserting missing {}s) in StringEscapeUtils.

Patch submitted by Fredrik Westermarck
Reviewed by Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137668 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2003-09-13 03:23:24 +00:00
parent c94b5776c1
commit 47979b1a49
1 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,7 @@ import org.apache.commons.lang.exception.NestableRuntimeException;
* @author Phil Steitz * @author Phil Steitz
* @author Pete Gieser * @author Pete Gieser
* @since 2.0 * @since 2.0
* @version $Id: StringEscapeUtils.java,v 1.26 2003/09/07 14:32:34 psteitz Exp $ * @version $Id: StringEscapeUtils.java,v 1.27 2003/09/13 03:23:24 psteitz Exp $
*/ */
public class StringEscapeUtils { public class StringEscapeUtils {
@ -242,7 +242,9 @@ public class StringEscapeUtils {
} else { } else {
switch (ch) { switch (ch) {
case '\'': case '\'':
if (escapeSingleQuote) out.write('\\'); if (escapeSingleQuote) {
out.write('\\');
}
out.write('\''); out.write('\'');
break; break;
case '"': case '"':