Workaround for Java 8 bug
This commit is contained in:
parent
693c3b430d
commit
634f73ff07
@ -3,11 +3,12 @@
|
|||||||
// the XOM library from http://www.xom.nu }
|
// the XOM library from http://www.xom.nu }
|
||||||
// {RunFirst: Person}
|
// {RunFirst: Person}
|
||||||
import nu.xom.*;
|
import nu.xom.*;
|
||||||
|
import java.io.File;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
public class People extends ArrayList<Person> {
|
public class People extends ArrayList<Person> {
|
||||||
public People(String fileName) throws Exception {
|
public People(String fileName) throws Exception {
|
||||||
Document doc = new Builder().build(fileName);
|
Document doc = new Builder().build(new File(fileName));
|
||||||
Elements elements =
|
Elements elements =
|
||||||
doc.getRootElement().getChildElements();
|
doc.getRootElement().getChildElements();
|
||||||
for(int i = 0; i < elements.size(); i++)
|
for(int i = 0; i < elements.size(); i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user