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:
parent
6b8c95d8cd
commit
3df6443caf
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue