commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r788257 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java
Date Thu, 25 Jun 2009 04:57:20 GMT
Author: bayard
Date: Thu Jun 25 04:57:19 2009
New Revision: 788257

URL: http://svn.apache.org/viewvc?rev=788257&view=rev
Log:
Fixing bug in below/above implementations found while implementing NumericEntityEscaper

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java?rev=788257&r1=788256&r2=788257&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java
Thu Jun 25 04:57:19 2009
@@ -30,11 +30,11 @@
     private boolean between = true;
 
     public static UnicodeEscaper below(int codepoint) {
-        return between(0, codepoint);
+        return outsideOf(codepoint, Integer.MAX_VALUE);
     }
 
     public static UnicodeEscaper above(int codepoint) {
-        return between(codepoint, Integer.MAX_VALUE);
+        return outsideOf(0, codepoint);
     }
 
     public static UnicodeEscaper outsideOf(int codepointLow, int codepointHigh) {



Mime
View raw message