[jsword-svn] bibledesktop/java/main/org/crosswire/bibledesktop/util s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Sun May 8 18:28:32 MST 2005


Update of /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/util
In directory www.crosswire.org:/tmp/cvs-serv5786/java/main/org/crosswire/bibledesktop/util

Modified Files:
	ConfigurableSwingConverter.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: ConfigurableSwingConverter.java
===================================================================
RCS file: /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/util/ConfigurableSwingConverter.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ConfigurableSwingConverter.java	28 Nov 2004 21:36:04 -0000	1.8
--- ConfigurableSwingConverter.java	9 May 2005 01:28:30 -0000	1.9
***************
*** 63,73 ****
              String search = "xsl/cswing/" + NetUtil.INDEX_FILE; //$NON-NLS-1$
              URL index = ResourceUtil.getResource(search);
!             return NetUtil.listByIndexFile(index, new URLFilter()
!             {
!                 public boolean accept(String name)
!                 {
!                     return name.endsWith(FileUtil.EXTENSION_XSLT);
!                 }
!             });
          }
          catch (IOException ex)
--- 63,67 ----
              String search = "xsl/cswing/" + NetUtil.INDEX_FILE; //$NON-NLS-1$
              URL index = ResourceUtil.getResource(search);
!             return NetUtil.listByIndexFile(index, new XSLTFilter());
          }
          catch (IOException ex)
***************
*** 146,149 ****
--- 140,157 ----
  
      /**
+      *
+      */
+     private static final class XSLTFilter implements URLFilter
+     {
+         /* (non-Javadoc)
+          * @see org.crosswire.common.util.URLFilter#accept(java.lang.String)
+          */
+         public boolean accept(String name)
+         {
+             return name.endsWith(FileUtil.EXTENSION_XSLT);
+         }
+     }
+ 
+     /**
       * The font to be used in OSIS->HTML generation
       */



More information about the jsword-svn mailing list