Skip to content

Commit 4d6de8c

Browse files
author
Keaton Taylor
committed
Remove unused constructor and add comment above other constructor
1 parent e430db4 commit 4d6de8c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/org/json/XMLTokener.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class XMLTokener extends JSONTokener {
2020
*/
2121
public static final java.util.HashMap<String, Character> entity;
2222

23-
private XMLParserConfiguration configuration = XMLParserConfiguration.ORIGINAL;;
23+
private XMLParserConfiguration configuration = XMLParserConfiguration.ORIGINAL;
2424

2525
static {
2626
entity = new java.util.HashMap<String, Character>(8);
@@ -47,14 +47,15 @@ public XMLTokener(String s) {
4747
super(s);
4848
}
4949

50+
/**
51+
* Construct an XMLTokener from a Reader and an XMLParserConfiguration.
52+
* @param r A source reader.
53+
* @param configuration the configuration that can be used to set certain flags
54+
*/
5055
public XMLTokener(Reader r, XMLParserConfiguration configuration) {
5156
super(r);
5257
this.configuration = configuration;
5358
}
54-
public XMLTokener(String s, XMLParserConfiguration configuration) {
55-
super(s);
56-
this.configuration = configuration;
57-
}
5859

5960
/**
6061
* Get the text in the CDATA block.

0 commit comments

Comments
 (0)