Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure JsonGenerator BigDecimal and BigInteger javadoc reflects the fact their JSON representation is a String #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions api/src/main/java/jakarta/json/stream/JsonGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public interface JsonGenerator extends Flushable, /*Auto*/Closeable {

/**
* Writes a JSON name/number value pair in the current object context.
* The specified value is written as a JSON number value. The string
* The specified value is written as a JSON string value. The string
* {@code new BigDecimal(value).toString()}
* is used as the text value for writing.
*
Expand All @@ -272,7 +272,7 @@ public interface JsonGenerator extends Flushable, /*Auto*/Closeable {

/**
* Writes a JSON name/number value pair in the current object context.
* The specified value is written as a JSON number value. The specified
* The specified value is written as a JSON string value. The specified
* value's {@code toString()} is used as the text value for writing.
*
* @param name a name in the JSON name/number pair to be written in
Expand Down Expand Up @@ -415,7 +415,7 @@ public interface JsonGenerator extends Flushable, /*Auto*/Closeable {
JsonGenerator write(String value);

/**
* Writes the specified value as a JSON number value within
* Writes the specified value as a JSON string value within
* the current array, field or root context. The specified value's {@code toString()}
* is used as the the text value for writing.
*
Expand All @@ -431,7 +431,7 @@ public interface JsonGenerator extends Flushable, /*Auto*/Closeable {
JsonGenerator write(BigDecimal value);

/**
* Writes the specified value as a JSON number value within
* Writes the specified value as a JSON string value within
* the current array, field or root context. The string {@code new BigDecimal(value).toString()}
* is used as the text value for writing.
*
Expand Down