lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r928293 - /lucene/dev/trunk/solr/src/java/org/apache/solr/analysis/WordDelimiterFilter.java
Date Sat, 27 Mar 2010 22:40:42 GMT
Author: rmuir
Date: Sat Mar 27 22:40:42 2010
New Revision: 928293

URL: http://svn.apache.org/viewvc?rev=928293&view=rev
Log:
termAttttttribute -> termAttribute

Modified:
    lucene/dev/trunk/solr/src/java/org/apache/solr/analysis/WordDelimiterFilter.java

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/analysis/WordDelimiterFilter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/analysis/WordDelimiterFilter.java?rev=928293&r1=928292&r2=928293&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/analysis/WordDelimiterFilter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/analysis/WordDelimiterFilter.java Sat Mar
27 22:40:42 2010
@@ -120,7 +120,7 @@ final class WordDelimiterFilter extends 
    */
   final CharArraySet protWords;
     
-  private final TermAttribute termAtttribute = (TermAttribute) addAttribute(TermAttribute.class);
+  private final TermAttribute termAttribute = (TermAttribute) addAttribute(TermAttribute.class);
   private final OffsetAttribute offsetAttribute = (OffsetAttribute) addAttribute(OffsetAttribute.class);
   private final PositionIncrementAttribute posIncAttribute = (PositionIncrementAttribute)
addAttribute(PositionIncrementAttribute.class);
   private final TypeAttribute typeAttribute = (TypeAttribute) addAttribute(TypeAttribute.class);
@@ -338,8 +338,8 @@ final class WordDelimiterFilter extends 
           return false;
         }
 
-        int termLength = termAtttribute.termLength();
-        char[] termBuffer = termAtttribute.termBuffer();
+        int termLength = termAttribute.termLength();
+        char[] termBuffer = termAttribute.termBuffer();
         
         accumPosInc += posIncAttribute.getPositionIncrement();
 
@@ -462,14 +462,14 @@ final class WordDelimiterFilter extends 
     savedStartOffset = offsetAttribute.startOffset();
     savedEndOffset = offsetAttribute.endOffset();
     // if length by start + end offsets doesn't match the term text then assume this is a
synonym and don't adjust the offsets.
-    hasIllegalOffsets = (savedEndOffset - savedStartOffset != termAtttribute.termLength());
+    hasIllegalOffsets = (savedEndOffset - savedStartOffset != termAttribute.termLength());
     savedType = typeAttribute.type();
 
-    if (savedBuffer.length < termAtttribute.termLength()) {
-      savedBuffer = new char[ArrayUtil.oversize(termAtttribute.termLength(), RamUsageEstimator.NUM_BYTES_CHAR)];
+    if (savedBuffer.length < termAttribute.termLength()) {
+      savedBuffer = new char[ArrayUtil.oversize(termAttribute.termLength(), RamUsageEstimator.NUM_BYTES_CHAR)];
     }
 
-    System.arraycopy(termAtttribute.termBuffer(), 0, savedBuffer, 0, termAtttribute.termLength());
+    System.arraycopy(termAttribute.termBuffer(), 0, savedBuffer, 0, termAttribute.termLength());
     iterator.text = savedBuffer;
 
     hasSavedState = true;
@@ -531,7 +531,7 @@ final class WordDelimiterFilter extends 
    */
   private void generatePart(boolean isSingleWord) {
     clearAttributes();
-    termAtttribute.setTermBuffer(savedBuffer, iterator.current, iterator.end - iterator.current);
+    termAttribute.setTermBuffer(savedBuffer, iterator.current, iterator.end - iterator.current);
 
     int startOffSet = (isSingleWord || !hasIllegalOffsets) ? savedStartOffset + iterator.current
: savedStartOffset;
     int endOffSet = (hasIllegalOffsets) ? savedEndOffset : savedStartOffset + iterator.end;
@@ -636,13 +636,13 @@ final class WordDelimiterFilter extends 
      */
     void write() {
       clearAttributes();
-      if (termAtttribute.termLength() < buffer.length()) {
-        termAtttribute.resizeTermBuffer(buffer.length());
+      if (termAttribute.termLength() < buffer.length()) {
+        termAttribute.resizeTermBuffer(buffer.length());
       }
-      char termbuffer[] = termAtttribute.termBuffer();
+      char termbuffer[] = termAttribute.termBuffer();
       
       buffer.getChars(0, buffer.length(), termbuffer, 0);
-      termAtttribute.setTermLength(buffer.length());
+      termAttribute.setTermLength(buffer.length());
         
       if (hasIllegalOffsets) {
         offsetAttribute.setOffset(savedStartOffset, savedEndOffset);



Mime
View raw message