/** * Changes the writer to treat the next value as a string name. This is useful for map adapters so * that arbitrary type adapters can use {@link #value} to write a name value. */ final void promoteValueToName() throws IOException { int context = peekScope(); if (context != NONEMPTY_OBJECT && context != EMPTY_OBJECT) { throw new IllegalStateException("Nesting problem."); } promoteValueToName = true; }
/** * Changes the writer to treat the next value as a string name. This is useful for map adapters so * that arbitrary type adapters can use {@link #value} to write a name value. */ final void promoteValueToName() throws IOException { int context = peekScope(); if (context != NONEMPTY_OBJECT && context != EMPTY_OBJECT) { throw new IllegalStateException("Nesting problem."); } promoteValueToName = true; }
/** * Changes the writer to treat the next value as a string name. This is useful for map adapters so * that arbitrary type adapters can use {@link #value} to write a name value. */ final void promoteValueToName() throws IOException { int context = peekScope(); if (context != NONEMPTY_OBJECT && context != EMPTY_OBJECT) { throw new IllegalStateException("Nesting problem."); } promoteValueToName = true; }