mirror of https://github.com/apache/lucene.git
javadoc: null val means no attr
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@883240 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ace3e15d0d
commit
8e00a81064
|
@ -186,6 +186,7 @@ final public class XMLWriter {
|
|||
defaultIndent = doIndent;
|
||||
}
|
||||
|
||||
/** Writes the XML attribute name/val. A null val means that the attribute is missing. */
|
||||
public void writeAttr(String name, String val) throws IOException {
|
||||
if (val != null) {
|
||||
writer.write(' ');
|
||||
|
|
Loading…
Reference in New Issue