More fixes to JavaDoc.

This commit is contained in:
Joel Leitch 2011-04-12 22:03:15 +00:00
parent b014017916
commit 5770be4ed2

View File

@ -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
* deserialization. To do that, you can write an {@code ExclusionStrategy} as per normal;
* however, you would register it with the
* {@link GsonBuilder#addDeserializationExclusionStrategy(ExclusionStrategy...)} method.
* {@link GsonBuilder#addDeserializationExclusionStrategy(ExclusionStrategy)} method.
* For example:
* <pre class="code">
* ExclusionStrategy excludeStrings = new UserDefinedExclusionStrategy(String.class);
* Gson gson = new GsonBuilder()
* .addDeserializationExclusionStrategies(excludeStrings)
* .addDeserializationExclusionStrategy(excludeStrings)
* .create();
* </pre>
*
@ -88,6 +88,8 @@ package com.google.gson;
* @author Joel Leitch
*
* @see GsonBuilder#setExclusionStrategies(ExclusionStrategy...)
* @see GsonBuilder#addDeserializationExclusionStrategy(ExclusionStrategy)
* @see GsonBuilder#addSerializationExclusionStrategy(ExclusionStrategy)
*
* @since 1.4
*/