[jsword-svn]
jsword/java/limbo/org/crosswire/jsword/book/search/basic s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Sun May 8 18:29:09 MST 2005
Update of /cvs/jsword/jsword/java/limbo/org/crosswire/jsword/book/search/basic
In directory www.crosswire.org:/tmp/cvs-serv6194/java/limbo/org/crosswire/jsword/book/search/basic
Added Files:
NullThesaurus.java
Log Message:
Moved unused code to limbo.
Upgraded support-tools: checkstyle, pmd and findbugs to most recent.
Addressed over 100 issues reported by findbugs and checkstyle.
Resulted in major refactoring of GBFFilter.
Net result is that code size is significantly smaller.
--- NEW FILE: NullThesaurus.java ---
package org.crosswire.jsword.book.search.basic;
import java.util.ArrayList;
import java.util.Collection;
import org.crosswire.jsword.book.BookException;
import org.crosswire.jsword.book.search.Thesaurus;
/**
* An implementation of Thesaurus that simply returns the word that the user
* wanted similies of.
* Useful if there is no other source of similarity data.
*
* <p><table border='1' cellPadding='3' cellSpacing='0'>
* <tr><td bgColor='white' class='TableRowColor'><font size='-7'>
*
* Distribution Licence:<br />
* JSword is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public License,
* version 2 as published by the Free Software Foundation.<br />
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.<br />
* The License is available on the internet
* <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, or by writing to:
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA<br />
* The copyright to this program is held by it's authors.
* </font></td></tr></table>
* @see gnu.gpl.Licence
* @author Joe Walker [joe at eireneh dot com]
* @version $Id: NullThesaurus.java,v 1.1 2005/05/09 01:29:07 dmsmith Exp $
*/
public class NullThesaurus implements Thesaurus
{
/* (non-Javadoc)
* @see org.crosswire.jsword.book.search.Thesaurus#getStartsWith(java.lang.String)
*/
public Collection getSynonyms(String word) throws BookException
{
Collection reply = new ArrayList();
reply.add(word);
return reply;
}
}
More information about the jsword-svn
mailing list