CloneSet97


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
35220.989class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14337
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/folder/mbox/CachedMboxFolder.java
23536
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/folder/mh/CachedMHFolder.java
Next
Last
Clone Instance
1
Line Count
43
Source Line
37
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/folder/mbox/CachedMboxFolder.java

/**
 * Constructs the CachedMboxFolder.java.
 * 
 * @param item
 * @param path
 */
public CachedMboxFolder(FolderItem item, String path) {
  super(item, path);
  // enable lucene search index by default
  boolean enableLucene = getConfiguration().getBooleanWithDefault("property", "enable_lucene", true);
  if (enableLucene) {
    getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this ));
  }
}

/**
 * Constructs the CachedMboxFolder.java.
 * 
 * @param name
 * @param type
 * @param path
 */
public CachedMboxFolder(String name, String type, String path) {
  super(name, type, path);
  IFolderItem item = getConfiguration();
  item.setString("property", "accessrights", "user");
  item.setString("property", "subfolder", "true");
  boolean enableLucene = getConfiguration().getBooleanWithDefault("property", "enable_lucene", false);
  if (enableLucene) {
    getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this ));
  }
}

/**
 * @see org.columba.mail.folder.AbstractLocalFolder#getDataStorageInstance()
 */
public IDataStorage getDataStorageInstance() {
  if (dataStorage == null) {
    dataStorage = new MboxDataStorage(this );
  }
  return dataStorage;
}


First
Previous
Clone Instance
2
Line Count
35
Source Line
36
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/folder/mh/CachedMHFolder.java

public CachedMHFolder(FolderItem item, String path) {
  super(item, path);
  // enable lucene search index by default
  boolean enableLucene = getConfiguration().getBooleanWithDefault("property", "enable_lucene", true);
  if (enableLucene) {
    getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this ));
  }
}

   /**
* @param type
*/
public CachedMHFolder(String name, String type, String path) {
  super(name, type, path);
  IFolderItem item = getConfiguration();
  item.setString("property", "accessrights", "user");
  item.setString("property", "subfolder", "true");
  boolean enableLucene = getConfiguration().getBooleanWithDefault("property", "enable_lucene", false);
  if (enableLucene) {
    getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this ));
  }
}

public IDataStorage getDataStorageInstance() {
  if (dataStorage == null) {
    dataStorage = new MHDataStorage(this );
  }
  return dataStorage;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Constructs the CachedMboxFolder.java.
         * 
         * @param item
         * @param path
         */
public [[#variable1323bae0]](FolderItem item, String path) {
  super(item, path);
  // enable lucene search index by default
  boolean enableLucene = getConfiguration().getBooleanWithDefault("property", "enable_lucene", true);
  if (enableLucene) {
    getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this ));
  }
}

/**
 * @param type
 */
/**
         * Constructs the CachedMboxFolder.java.
         * 
         * @param name
         * @param type
         * @param path
         */
public [[#variable1323bae0]](String name, String type, String path) {
  super(name, type, path);
  IFolderItem item = getConfiguration();
  item.setString("property", "accessrights", "user");
  item.setString("property", "subfolder", "true");
  boolean enableLucene = getConfiguration().getBooleanWithDefault("property", "enable_lucene", false);
  if (enableLucene) {
    getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this ));
  }
}

/**
         * @see org.columba.mail.folder.AbstractLocalFolder#getDataStorageInstance()
         */
public IDataStorage getDataStorageInstance() {
  if (dataStorage == null) {
    dataStorage = new [[#variable1323ba80]](this );
  }
  return dataStorage;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1323bae0]]
CachedMboxFolder 
12[[#1323bae0]]
CachedMHFolder 
21[[#1323ba80]]
MboxDataStorage 
22[[#1323ba80]]
MHDataStorage