add `JsonParser.currentName()` for forwards-compatibility (will be publicly added in 3.0)
@@ -1118,6 +1118,12 @@ public abstract class JsonParser
*/
public abstract String getCurrentName() throws IOException;
+ // 15-Dec-2017, tatu: Forward-looking, added in 2.9.4 (and officially in 3.0)
+ // to smooth upgrading
+ public String currentName() throws IOException {
+ return getCurrentName();
+ }
+
/**
* Method for accessing textual representation of the current token;
* if no current token (before first call to {@link #nextToken}, or
