From 9f25b35a3b1154bcd15e0b56352f1ab1ef284586 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Sun, 15 Nov 2020 12:08:48 -0800 Subject: [PATCH] Addendum to #653: make related constants public too --- .../jackson/core/JsonStreamContext.java | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/core/JsonStreamContext.java b/src/main/java/com/fasterxml/jackson/core/JsonStreamContext.java index 8ee5367839..7d1e72673a 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonStreamContext.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonStreamContext.java @@ -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; /**