You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2014/11/06 11:38:52 UTC
svn commit: r1637069 -
/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java
Author: tn
Date: Thu Nov 6 10:38:51 2014
New Revision: 1637069
URL: http://svn.apache.org/r1637069
Log:
Fix checkstyle warnings.
Modified:
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java
Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java?rev=1637069&r1=1637068&r2=1637069&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java Thu Nov 6 10:38:51 2014
@@ -48,12 +48,12 @@ import org.apache.commons.codec.binary.S
* Depending on the selected {@code strict} parameter, this class will implement a different set of rules of the
* quoted-printable spec:
* <ul>
- * <li>{@code strict=false}: only rules #1 and #2 are implemented
+ * <li>{@code strict=false}: only rules #1 and #2 are implemented
* <li>{@code strict=true}: all rules #1 through #5 are implemented
* </ul>
* Originally, this class only supported the non-strict mode, but the codec in this partial form could already be used
- * for certain applications that do not require quoted-printable line formatting (rules #3, #4, #5), for instance Q codec.
- * The strict mode has been added in 1.10.
+ * for certain applications that do not require quoted-printable line formatting (rules #3, #4, #5), for instance
+ * Q codec. The strict mode has been added in 1.10.
* <p>
* This class is immutable and thread-safe.
*
@@ -278,7 +278,7 @@ public class QuotedPrintableCodec implem
printable = PRINTABLE_CHARS;
}
final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
-
+
if (strict) {
int pos = 1;
// encode up to buffer.length - 3, the last three octets will be treated