Skip to content

Commit 1736a60

Browse files
committed
adds comment for the API change
1 parent e8b1b66 commit 1736a60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

XMLTokener.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ public Object nextToken() throws JSONException {
298298
* If it is not found, we are left at the end of the source with a result of false.
299299
* @param to A string to skip past.
300300
*/
301+
// The Android implementation of JSONTokener has a public method of public void skipPast(String to)
302+
// even though ours does not have that method, to have API compatibility, our method in the subclass
303+
// should match.
301304
public void skipPast(String to) {
302305
boolean b;
303306
char c;

0 commit comments

Comments
 (0)