[jsword-svn] common/java/core/org/crosswire/common/xml s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Sun May 8 18:28:45 MST 2005
Update of /cvs/jsword/common/java/core/org/crosswire/common/xml
In directory www.crosswire.org:/tmp/cvs-serv5945/java/core/org/crosswire/common/xml
Modified Files:
XMLUtil.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: XMLUtil.java
===================================================================
RCS file: /cvs/jsword/common/java/core/org/crosswire/common/xml/XMLUtil.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** XMLUtil.java 12 Mar 2005 21:15:55 -0000 1.9
--- XMLUtil.java 9 May 2005 01:28:42 -0000 1.10
***************
*** 93,99 ****
public static String escape(String s)
{
! StringBuffer str = new StringBuffer(s.length());
- int len = (s != null) ? s.length() : 0;
for (int i = 0; i < len; i++)
{
--- 93,103 ----
public static String escape(String s)
{
! if (s == null)
! {
! return s;
! }
! int len = s.length();
! StringBuffer str = new StringBuffer(len);
for (int i = 0; i < len; i++)
{
More information about the jsword-svn
mailing list