abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r560687 - /incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/unicode/UnicodeCharacterDatabase.java
Date Sun, 29 Jul 2007 06:57:31 GMT
Author: jmsnell
Date: Sat Jul 28 23:57:30 2007
New Revision: 560687

URL: http://svn.apache.org/viewvc?view=rev&rev=560687
Log:
Bug fix. There was a typo. To eliminate the chance of it happening again, simply refer to
the isComposite method

Modified:
    incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/unicode/UnicodeCharacterDatabase.java

Modified: incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/unicode/UnicodeCharacterDatabase.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/unicode/UnicodeCharacterDatabase.java?view=diff&rev=560687&r1=560686&r2=560687
==============================================================================
--- incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/unicode/UnicodeCharacterDatabase.java
(original)
+++ incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/unicode/UnicodeCharacterDatabase.java
Sat Jul 28 23:57:30 2007
@@ -79,7 +79,7 @@
   }
   
   public char getPairComposition(int f, int s) {
-    if (f < 0 || s > 0x10FFFF || s < 0 || s > 0x10FFFF) return '\uFFFF';
+    if (!isComposite(f,s)) return '\uFFFF';
     Integer i = compose.get((f << 16) | s);
     return (i != null) ? (char)i.intValue() : '\uFFFF';
   }



Mime
View raw message