438 XMLOutputter state should be initialized.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@627589 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bryan Duxbury 2008-02-13 20:42:02 +00:00
parent 6b8c95d8cd
commit 3df6443caf
1 changed files with 3 additions and 0 deletions

View File

@ -114,12 +114,15 @@ public class HtmlTableFormatter implements TableFormatter {
* no header, no footer, etc.
* @throws IOException
*/
@SuppressWarnings("static-access")
public void header(String[] titles) throws IOException {
if (titles == null) {
// print nothing.
setNoFormatting(true);
return;
}
this.outputter.setState(this.outputter.BEFORE_XML_DECLARATION, null);
// Can't add a 'border=1' attribute because its included on the end in
this.outputter.startTag("table");