Skip to content

Commit

Permalink
Addendum to #653: make related constants public too
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Nov 15, 2020
1 parent ac00174 commit 9f25b35
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/main/java/com/fasterxml/jackson/core/JsonStreamContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,26 @@
public abstract class JsonStreamContext
{
// // // Type constants used internally
// // // (but exposed publicly as of 2.12 as possibly needed)

protected final static int TYPE_ROOT = 0;
protected final static int TYPE_ARRAY = 1;
protected final static int TYPE_OBJECT = 2;
/**
* Indicator for "Root Value" context (has not parent)
*/
public final static int TYPE_ROOT = 0;

/**
* Indicator for "Array" context.
*/
public final static int TYPE_ARRAY = 1;

/**
* Indicator for "Object" context.
*/
public final static int TYPE_OBJECT = 2;

/**
* Indicates logical type of context as one of {@code TYPE_xxx} consants.
*/
protected int _type;

/**
Expand Down

0 comments on commit 9f25b35

Please sign in to comment.