Author: ggregory Date: Tue Jul 28 07:32:49 2009 New Revision: 798428 URL: http://svn.apache.org/viewvc?rev=798428&view=rev Log: Fix typo in variable name.
Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/RFC1522Codec.java Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/RFC1522Codec.java URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/RFC1522Codec.java?rev=798428&r1=798427&r2=798428&view=diff ============================================================================== --- commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/RFC1522Codec.java (original) +++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/RFC1522Codec.java Tue Jul 28 07:32:49 2009 @@ -118,10 +118,10 @@ if ((!text.startsWith(PREFIX)) || (!text.endsWith(POSTFIX))) { throw new DecoderException("RFC 1522 violation: malformed encoded content"); } - int termnator = text.length() - 2; + int terminator = text.length() - 2; int from = 2; int to = text.indexOf(SEP, from); - if (to == termnator) { + if (to == terminator) { throw new DecoderException("RFC 1522 violation: charset token not found"); } String charset = text.substring(from, to); @@ -130,7 +130,7 @@ } from = to + 1; to = text.indexOf(SEP, from); - if (to == termnator) { + if (to == terminator) { throw new DecoderException("RFC 1522 violation: encoding token not found"); } String encoding = text.substring(from, to);