-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add Javadoc @since
tags for previously added elements
#2211
Add Javadoc @since
tags for previously added elements
#2211
Conversation
55914c1
to
7079be9
Compare
@since
tags for previously added elements; improve release actions@since
tags for previously added elements
@@ -86,6 +86,8 @@ public enum FieldNamingPolicy implements FieldNamingStrategy { | |||
* <li>aStringField ---> A_STRING_FIELD</li> | |||
* <li>aURL ---> A_U_R_L</li> | |||
* </ul> | |||
* | |||
* @since 2.9.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @since 2.8 | ||
* {@code myobject.my.field} will result in an unintended JavaScript expression. | ||
* | ||
* @since 2.8.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(previous @since
value was apparently incorrect)
@@ -343,6 +343,7 @@ public Gson() { | |||
* instance. | |||
* | |||
* @return a GsonBuilder instance. | |||
* @since 2.8.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -364,6 +364,7 @@ public GsonBuilder setFieldNamingStrategy(FieldNamingStrategy fieldNamingStrateg | |||
* @param objectToNumberStrategy the actual object-to-number strategy | |||
* @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern | |||
* @see ToNumberPolicy#DOUBLE The default object-to-number strategy | |||
* @since 2.8.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -376,6 +377,7 @@ public GsonBuilder setObjectToNumberStrategy(ToNumberStrategy objectToNumberStra | |||
* @param numberToNumberStrategy the actual number-to-number strategy | |||
* @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern | |||
* @see ToNumberPolicy#LAZILY_PARSED_NUMBER The default number-to-number strategy | |||
* @since 2.8.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
/** | ||
* An enumeration that defines two standard number reading strategies and a couple of | ||
* strategies to overcome some historical Gson limitations while deserializing numbers as | ||
* {@link Object} and {@link Number}. | ||
* | ||
* @see ToNumberStrategy | ||
* @since 2.8.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -56,6 +55,7 @@ | |||
* @see ToNumberPolicy | |||
* @see GsonBuilder#setObjectToNumberStrategy(ToNumberStrategy) | |||
* @see GsonBuilder#setNumberToNumberStrategy(ToNumberStrategy) | |||
* @since 2.8.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -429,6 +429,7 @@ public JsonWriter value(String value) throws IOException { | |||
* @return this writer. | |||
* @throws UnsupportedOperationException if this writer does not support | |||
* writing raw JSON values. | |||
* @since 2.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -475,6 +476,7 @@ public JsonWriter value(boolean value) throws IOException { | |||
* Encodes {@code value}. | |||
* | |||
* @return this writer. | |||
* @since 2.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -495,6 +497,7 @@ public JsonWriter value(Boolean value) throws IOException { | |||
* @return this writer. | |||
* @throws IllegalArgumentException if the value is NaN or Infinity and this writer is not {@link | |||
* #setLenient(boolean) lenient}. | |||
* @since 2.9.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that's very useful! |
Adds Javadoc
@since
tags for elements which were added in previous releases and do not have this tag yet. I have also added review comments below referring to the relevant commits where these elements were added.