More fixes to JavaDoc.
This commit is contained in:
parent
b014017916
commit
5770be4ed2
|
@ -75,12 +75,12 @@ package com.google.gson;
|
||||||
* <p>For certain model classes, you may only want to serialize a field, but exclude it for
|
* <p>For certain model classes, you may only want to serialize a field, but exclude it for
|
||||||
* deserialization. To do that, you can write an {@code ExclusionStrategy} as per normal;
|
* deserialization. To do that, you can write an {@code ExclusionStrategy} as per normal;
|
||||||
* however, you would register it with the
|
* however, you would register it with the
|
||||||
* {@link GsonBuilder#addDeserializationExclusionStrategy(ExclusionStrategy...)} method.
|
* {@link GsonBuilder#addDeserializationExclusionStrategy(ExclusionStrategy)} method.
|
||||||
* For example:
|
* For example:
|
||||||
* <pre class="code">
|
* <pre class="code">
|
||||||
* ExclusionStrategy excludeStrings = new UserDefinedExclusionStrategy(String.class);
|
* ExclusionStrategy excludeStrings = new UserDefinedExclusionStrategy(String.class);
|
||||||
* Gson gson = new GsonBuilder()
|
* Gson gson = new GsonBuilder()
|
||||||
* .addDeserializationExclusionStrategies(excludeStrings)
|
* .addDeserializationExclusionStrategy(excludeStrings)
|
||||||
* .create();
|
* .create();
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -88,6 +88,8 @@ package com.google.gson;
|
||||||
* @author Joel Leitch
|
* @author Joel Leitch
|
||||||
*
|
*
|
||||||
* @see GsonBuilder#setExclusionStrategies(ExclusionStrategy...)
|
* @see GsonBuilder#setExclusionStrategies(ExclusionStrategy...)
|
||||||
|
* @see GsonBuilder#addDeserializationExclusionStrategy(ExclusionStrategy)
|
||||||
|
* @see GsonBuilder#addSerializationExclusionStrategy(ExclusionStrategy)
|
||||||
*
|
*
|
||||||
* @since 1.4
|
* @since 1.4
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user