Trivial code whitespace cleanup
This commit is contained in:
parent
0aa6cc434d
commit
ec79b42a92
1 changed files with 32 additions and 32 deletions
|
|
@ -251,7 +251,7 @@ public class SloppyXMLParser {
|
||||||
int lineNum = lineAndCol[0];
|
int lineNum = lineAndCol[0];
|
||||||
int colNum = lineAndCol[1];
|
int colNum = lineAndCol[1];
|
||||||
|
|
||||||
SAXParseException cause = new SAXParseException( String.format( "At line %d, column %d: Strange attributes.", lineNum, colNum ), null, null, lineNum, colNum);
|
SAXParseException cause = new SAXParseException( String.format( "At line %d, column %d: Strange attributes.", lineNum, colNum ), null, null, lineNum, colNum );
|
||||||
throw new JDOMParseException( String.format( "Error on line %d: %s", lineNum, cause.getMessage() ), cause );
|
throw new JDOMParseException( String.format( "Error on line %d: %s", lineNum, cause.getMessage() ), cause );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -295,7 +295,7 @@ public class SloppyXMLParser {
|
||||||
int lineNum = lineAndCol[0];
|
int lineNum = lineAndCol[0];
|
||||||
int colNum = lineAndCol[1];
|
int colNum = lineAndCol[1];
|
||||||
|
|
||||||
SAXParseException cause = new SAXParseException( String.format( "At line %d, column %d: Unexpected characters.", lineNum, colNum ), null, null, lineNum, colNum);
|
SAXParseException cause = new SAXParseException( String.format( "At line %d, column %d: Unexpected characters.", lineNum, colNum ), null, null, lineNum, colNum );
|
||||||
throw new JDOMParseException( String.format( "Error on line %d: %s", lineNum, cause.getMessage() ), cause );
|
throw new JDOMParseException( String.format( "Error on line %d: %s", lineNum, cause.getMessage() ), cause );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -324,7 +324,7 @@ public class SloppyXMLParser {
|
||||||
if ( e.getMessage() != null && e.getMessage().indexOf( "not allowed at the document root" ) != -1 ) {
|
if ( e.getMessage() != null && e.getMessage().indexOf( "not allowed at the document root" ) != -1 ) {
|
||||||
hint = " (There's likely an extraneous closing tag before this point.)";
|
hint = " (There's likely an extraneous closing tag before this point.)";
|
||||||
}
|
}
|
||||||
SAXParseException cause = new SAXParseException( String.format( "At line %d, column %d: %s%s", lineNum, colNum, e.getMessage(), hint ), null, null, lineNum, colNum, e);
|
SAXParseException cause = new SAXParseException( String.format( "At line %d, column %d: %s%s", lineNum, colNum, e.getMessage(), hint ), null, null, lineNum, colNum, e );
|
||||||
throw new JDOMParseException( String.format( "Error on line %d: %s", lineNum, cause.getMessage() ), cause );
|
throw new JDOMParseException( String.format( "Error on line %d: %s", lineNum, cause.getMessage() ), cause );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue