[jsword-svn] jsword/java/jsword/org/crosswire/jsword/book/filter s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Sun May 8 18:29:14 MST 2005


Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter
In directory www.crosswire.org:/tmp/cvs-serv6194/java/jsword/org/crosswire/jsword/book/filter

Modified Files:
	FilterFactory.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.

Index: FilterFactory.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter/FilterFactory.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** FilterFactory.java	8 Sep 2004 19:55:08 -0000	1.8
--- FilterFactory.java	9 May 2005 01:29:07 -0000	1.9
***************
*** 77,88 ****
  
          // the lookup table
!         for (Iterator it = map.keySet().iterator(); it.hasNext(); )
          {
              try
              {
!                 String key = (String) it.next();
!                 Class clazz = (Class) map.get(key);
                  Filter instance = (Filter) clazz.newInstance();
!                 addFilter(key, instance);
              }
              catch (Exception ex)
--- 77,88 ----
  
          // the lookup table
!         for (Iterator it = map.entrySet().iterator(); it.hasNext(); )
          {
              try
              {
!                 Map.Entry entry = (Map.Entry) it.next();
!                 Class clazz = (Class) entry.getValue();
                  Filter instance = (Filter) clazz.newInstance();
!                 addFilter((String) entry.getKey(), instance);
              }
              catch (Exception ex)



More information about the jsword-svn mailing list