lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1228220 - in /lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji: KuromojiAnalyzer.java util/CSVUtil.java viterbi/ViterbiNode.java
Date Fri, 06 Jan 2012 15:01:36 GMT
Author: uschindler
Date: Fri Jan  6 15:01:36 2012
New Revision: 1228220

URL: http://svn.apache.org/viewvc?rev=1228220&view=rev
Log:
LUCENE-3305: Add private/final/... for various classes

Modified:
    lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java
    lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/util/CSVUtil.java
    lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/viterbi/ViterbiNode.java

Modified: lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java?rev=1228220&r1=1228219&r2=1228220&view=diff
==============================================================================
--- lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java
(original)
+++ lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/KuromojiAnalyzer.java
Fri Jan  6 15:01:36 2012
@@ -23,7 +23,7 @@ import org.apache.lucene.analysis.Analyz
 import org.apache.lucene.analysis.Tokenizer;
 
 public class KuromojiAnalyzer extends Analyzer {
-  org.apache.lucene.analysis.kuromoji.Tokenizer tokenizer;
+  private final org.apache.lucene.analysis.kuromoji.Tokenizer tokenizer;
   
   public KuromojiAnalyzer(org.apache.lucene.analysis.kuromoji.Tokenizer tokenizer) {
     this.tokenizer = tokenizer;

Modified: lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/util/CSVUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/util/CSVUtil.java?rev=1228220&r1=1228219&r2=1228220&view=diff
==============================================================================
--- lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/util/CSVUtil.java
(original)
+++ lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/util/CSVUtil.java
Fri Jan  6 15:01:36 2012
@@ -21,7 +21,7 @@ import java.util.ArrayList;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
-public class CSVUtil {
+public final class CSVUtil {
   private static final char QUOTE = '"';
   
   private static final char COMMA = ',';
@@ -30,6 +30,8 @@ public class CSVUtil {
   
   private static final String ESCAPED_QUOTE = "\"\"";
   
+  private CSVUtil() {} // no instance!!!
+  
   /**
    * Parse CSV line
    * @param line

Modified: lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/viterbi/ViterbiNode.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/viterbi/ViterbiNode.java?rev=1228220&r1=1228219&r2=1228220&view=diff
==============================================================================
--- lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/viterbi/ViterbiNode.java
(original)
+++ lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/viterbi/ViterbiNode.java
Fri Jan  6 15:01:36 2012
@@ -17,7 +17,7 @@ package org.apache.lucene.analysis.kurom
  * limitations under the License.
  */
 
-public class ViterbiNode {
+public final class ViterbiNode {
   public enum Type {
     KNOWN,
     UNKNOWN,



Mime
View raw message