mrglavas 2004/09/01 20:53:53
Modified: java/src/org/apache/xerces/xni/parser XMLParseException.java
Log:
Updating toString() method to print out character offset.
Removing redundant printing of public identifier. We were
writing it to the buffer twice.
Revision Changes Path
1.8 +3 -5
xml-xerces/java/src/org/apache/xerces/xni/parser/XMLParseException.java
Index: XMLParseException.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/xni/parser/XMLParseException.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XMLParseException.java 1 Sep 2004 03:00:15 -0000 1.7
+++ XMLParseException.java 2 Sep 2004 03:53:53 -0000 1.8
@@ -143,10 +143,6 @@
str.append(fPublicId);
}
str.append(':');
- if (fPublicId != null) {
- str.append(fPublicId);
- }
- str.append(':');
if (fLiteralSystemId != null) {
str.append(fLiteralSystemId);
}
@@ -162,6 +158,8 @@
str.append(fLineNumber);
str.append(':');
str.append(fColumnNumber);
+ str.append(':');
+ str.append(fCharacterOffset);
str.append(':');
String message = getMessage();
if (message == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]