[jsword-svn] common/java/core/org/crosswire/common/xml s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Sat Mar 19 19:34:54 MST 2005
Update of /cvs/jsword/common/java/core/org/crosswire/common/xml
In directory www.crosswire.org:/tmp/cvs-serv8149/java/core/org/crosswire/common/xml
Modified Files:
HTMLSerializingContentHandler.java
PrettySerializingContentHandler.java FormatType.java
Log Message:
Cleaning up checkstyle warnings.
Index: HTMLSerializingContentHandler.java
===================================================================
RCS file: /cvs/jsword/common/java/core/org/crosswire/common/xml/HTMLSerializingContentHandler.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** HTMLSerializingContentHandler.java 18 Mar 2005 23:04:14 -0000 1.2
--- HTMLSerializingContentHandler.java 20 Mar 2005 02:34:52 -0000 1.3
***************
*** 116,120 ****
StringBuffer buf = new StringBuffer();
buf.append("<font class='indent'>"); //$NON-NLS-1$
! buf.append(super.decorateIndent(indentLevel).replaceAll("\t"," ")); //$NON-NLS-1$ //$NON-NLS-2$
buf.append("</font>"); //$NON-NLS-1$
return buf.toString();
--- 116,120 ----
StringBuffer buf = new StringBuffer();
buf.append("<font class='indent'>"); //$NON-NLS-1$
! buf.append(super.decorateIndent(indentLevel).replaceAll("\t", " ")); //$NON-NLS-1$ //$NON-NLS-2$
buf.append("</font>"); //$NON-NLS-1$
return buf.toString();
Index: FormatType.java
===================================================================
RCS file: /cvs/jsword/common/java/core/org/crosswire/common/xml/FormatType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FormatType.java 12 Mar 2005 21:15:55 -0000 1.1
--- FormatType.java 20 Mar 2005 02:34:52 -0000 1.2
***************
*** 57,61 ****
return multiline;
}
!
/**
* Whether indents are introduced into the document.
--- 57,61 ----
return multiline;
}
!
/**
* Whether indents are introduced into the document.
***************
*** 76,80 ****
return analytic;
}
!
/**
* Whether added whitespace is between tags. Note, this does
--- 76,80 ----
return analytic;
}
!
/**
* Whether added whitespace is between tags. Note, this does
Index: PrettySerializingContentHandler.java
===================================================================
RCS file: /cvs/jsword/common/java/core/org/crosswire/common/xml/PrettySerializingContentHandler.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PrettySerializingContentHandler.java 15 Mar 2005 11:54:37 -0000 1.2
--- PrettySerializingContentHandler.java 20 Mar 2005 02:34:52 -0000 1.3
***************
*** 254,258 ****
return "</"; //$NON-NLS-1$
}
!
protected String getPIStart()
{
--- 254,258 ----
return "</"; //$NON-NLS-1$
}
!
protected String getPIStart()
{
***************
*** 279,298 ****
return attrName;
}
!
protected String decorateAttributeValue(String attrValue)
{
return attrValue;
}
!
protected String decorateCharacters(String characters)
{
return characters;
}
!
protected String decorateIndent(int indentLevel)
{
return new String(indentation, 0, indentLevel).intern();
}
!
protected void write(String obj)
{
--- 279,298 ----
return attrName;
}
!
protected String decorateAttributeValue(String attrValue)
{
return attrValue;
}
!
protected String decorateCharacters(String characters)
{
return characters;
}
!
protected String decorateIndent(int indentLevel)
{
return new String(indentation, 0, indentLevel).intern();
}
!
protected void write(String obj)
{
***************
*** 339,343 ****
lookingForChars = false;
}
!
private void emitWhitespace(int indentLevel)
{
--- 339,343 ----
lookingForChars = false;
}
!
private void emitWhitespace(int indentLevel)
{
***************
*** 348,356 ****
}
}
!
/**
* This allows for rapid output of whitespace.
*/
! static private char[] indentation =
{
'\t', '\t', '\t', '\t', '\t',
--- 348,356 ----
}
}
!
/**
* This allows for rapid output of whitespace.
*/
! private static char[] indentation =
{
'\t', '\t', '\t', '\t', '\t',
More information about the jsword-svn
mailing list