lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r728746 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNameFilter.java
Date Mon, 22 Dec 2008 19:21:41 GMT
Author: mikemccand
Date: Mon Dec 22 11:21:40 2008
New Revision: 728746

URL: http://svn.apache.org/viewvc?rev=728746&view=rev
Log:
LUCENE-1499: enforce IndexFileNameFilter as singleton

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNameFilter.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNameFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNameFilter.java?rev=728746&r1=728745&r2=728746&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNameFilter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNameFilter.java Mon Dec 22
11:21:40 2008
@@ -28,11 +28,12 @@
  */
 public class IndexFileNameFilter implements FilenameFilter {
 
-  static IndexFileNameFilter singleton = new IndexFileNameFilter();
+  private static IndexFileNameFilter singleton = new IndexFileNameFilter();
   private HashSet extensions;
   private HashSet extensionsInCFS;
 
-  public IndexFileNameFilter() {
+  // Prevent instantiation.
+  private IndexFileNameFilter() {
     extensions = new HashSet();
     for (int i = 0; i < IndexFileNames.INDEX_EXTENSIONS.length; i++) {
       extensions.add(IndexFileNames.INDEX_EXTENSIONS[i]);



Mime
View raw message