Remove unused constructor and add comment above other constructor

This commit is contained in:
Keaton Taylor 2023-12-13 14:04:05 +02:00
parent e430db40aa
commit 4d6de8c00a

View File

@ -20,7 +20,7 @@ public class XMLTokener extends JSONTokener {
*/
public static final java.util.HashMap<String, Character> entity;
private XMLParserConfiguration configuration = XMLParserConfiguration.ORIGINAL;;
private XMLParserConfiguration configuration = XMLParserConfiguration.ORIGINAL;
static {
entity = new java.util.HashMap<String, Character>(8);
@ -47,14 +47,15 @@ public class XMLTokener extends JSONTokener {
super(s);
}
/**
* Construct an XMLTokener from a Reader and an XMLParserConfiguration.
* @param r A source reader.
* @param configuration the configuration that can be used to set certain flags
*/
public XMLTokener(Reader r, XMLParserConfiguration configuration) {
super(r);
this.configuration = configuration;
}
public XMLTokener(String s, XMLParserConfiguration configuration) {
super(s);
this.configuration = configuration;
}
/**
* Get the text in the CDATA block.