Mercurial Hosting > luan
diff src/goodjava/xml/XmlElement.java @ 1819:9daae8cf4bef
xml minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 30 Jun 2024 05:45:19 -0600 |
parents | 3c43b07e12b7 |
children |
line wrap: on
line diff
--- a/src/goodjava/xml/XmlElement.java Sun Jun 16 20:26:12 2024 -0600 +++ b/src/goodjava/xml/XmlElement.java Sun Jun 30 05:45:19 2024 -0600 @@ -36,8 +36,6 @@ public void setContent(XmlElement[] content) { if( content == null ) throw new IllegalArgumentException("content of '"+name+"' can't be null"); - if( content.length == 0 ) - throw new IllegalArgumentException("content of '"+name+"' can't be empty"); this.content = content; for( XmlElement el : content ) { el.parent = this;