From 47979b1a490998f652b0008f51463fb7438abf5e Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Sat, 13 Sep 2003 03:23:24 +0000 Subject: [PATCH] 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 --- src/java/org/apache/commons/lang/StringEscapeUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/lang/StringEscapeUtils.java b/src/java/org/apache/commons/lang/StringEscapeUtils.java index d1deee5c1..fa15f5158 100644 --- a/src/java/org/apache/commons/lang/StringEscapeUtils.java +++ b/src/java/org/apache/commons/lang/StringEscapeUtils.java @@ -74,7 +74,7 @@ import org.apache.commons.lang.exception.NestableRuntimeException; * @author Phil Steitz * @author Pete Gieser * @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 { @@ -242,7 +242,9 @@ public class StringEscapeUtils { } else { switch (ch) { case '\'': - if (escapeSingleQuote) out.write('\\'); + if (escapeSingleQuote) { + out.write('\\'); + } out.write('\''); break; case '"':