lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/cn ChineseTokenizer.java
Date Mon, 19 Jan 2004 21:23:28 GMT
ehatcher    2004/01/19 13:23:28

  Modified:    contributions/analyzers/src/java/org/apache/lucene/analysis/cjk
                        CJKTokenizer.java
               contributions/analyzers/src/java/org/apache/lucene/analysis/cn
                        ChineseTokenizer.java
  Log:
  removing redundant casts
  
  Revision  Changes    Path
  1.2       +2 -2      jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKTokenizer.java
  
  Index: CJKTokenizer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKTokenizer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CJKTokenizer.java	23 Dec 2003 18:46:35 -0000	1.1
  +++ CJKTokenizer.java	19 Jan 2004 21:23:28 -0000	1.2
  @@ -177,7 +177,7 @@
                   }
               } else {
                   //get current character
  -                c = (char) ioBuffer[bufferIndex++];
  +                c = ioBuffer[bufferIndex++];
   
                   //get the UnicodeBlock of the current character
                   ub = Character.UnicodeBlock.of(c);
  
  
  
  1.2       +1 -1      jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseTokenizer.java
  
  Index: ChineseTokenizer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/cn/ChineseTokenizer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ChineseTokenizer.java	23 Dec 2003 18:57:27 -0000	1.1
  +++ ChineseTokenizer.java	19 Jan 2004 21:23:28 -0000	1.2
  @@ -68,7 +68,7 @@
   
               if (dataLen == -1) return flush();
               else
  -                c = (char) ioBuffer[bufferIndex++];
  +                c = ioBuffer[bufferIndex++];
   
   
               switch(Character.getType(c)) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message