Skip to content

Commit e5d7f82

Browse files
authored
Merge pull request #56 from sjsajj/fixJavaDocWarning
Fixing java doc warnings.
2 parents 1c889bf + 9f1b738 commit e5d7f82

35 files changed

+76
-77
lines changed

src/main/java/io/gsonfire/ClassConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.util.Collection;
55

66
/**
7-
* @autor: julio
7+
* @author julio
88
*/
99
public final class ClassConfig<T> {
1010

src/main/java/io/gsonfire/DateSerializationPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import java.util.TimeZone;
1111

1212
/**
13-
* @autor: julio
13+
* @author julio
1414
*/
1515
public enum DateSerializationPolicy {
1616

src/main/java/io/gsonfire/GsonFireBuilder.java

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.concurrent.ConcurrentHashMap;
1616

1717
/**
18-
* @autor: julio
18+
* @author julio
1919
*/
2020
public final class GsonFireBuilder {
2121

@@ -59,10 +59,10 @@ private static void insertOrdered(List<Class> classes, Class clazz) {
5959
* A type selector is in charge of deciding which sub class to use when converting a json
6060
* into an object.<br />
6161
* See <a href="http://goo.gl/qKo7z"> docs and example</a>
62-
* @param clazz
63-
* @param factory
64-
* @param <T>
65-
* @return
62+
* @param clazz class
63+
* @param factory factory
64+
* @param <T> type selector
65+
* @return a GsonFireBuilder
6666
*/
6767
public <T> GsonFireBuilder registerTypeSelector(Class<T> clazz, TypeSelector<T> factory){
6868
ClassConfig config = getClassConfig(clazz);
@@ -76,10 +76,10 @@ public <T> GsonFireBuilder registerTypeSelector(Class<T> clazz, TypeSelector<T>
7676
* will prepare a class just created from a json.<br />
7777
* See <a href="http://goo.gl/5fLLN"> docs and example</a>
7878
*
79-
* @param clazz
80-
* @param postProcessor
81-
* @param <T>
82-
* @return
79+
* @param clazz class
80+
* @param postProcessor post processor
81+
* @param <T> type
82+
* @return GsonFireBuilder
8383
*/
8484
public <T> GsonFireBuilder registerPostProcessor(Class<T> clazz, PostProcessor<? super T> postProcessor){
8585
ClassConfig config = getClassConfig(clazz);
@@ -93,10 +93,10 @@ public <T> GsonFireBuilder registerPostProcessor(Class<T> clazz, PostProcessor<?
9393
* it actually gets deserialized into a class
9494
* See <a href="http://goo.gl/b8V1AA"> docs and example</a>
9595
*
96-
* @param clazz
97-
* @param preProcessor
98-
* @param <T>
99-
* @return
96+
* @param clazz class
97+
* @param preProcessor pre processor
98+
* @param <T> type
99+
* @return GsonFireBuilder
100100
*/
101101
public <T> GsonFireBuilder registerPreProcessor(Class<T> clazz, PreProcessor<? super T> preProcessor){
102102
ClassConfig config = getClassConfig(clazz);
@@ -106,8 +106,8 @@ public <T> GsonFireBuilder registerPreProcessor(Class<T> clazz, PreProcessor<? s
106106

107107
/**
108108
* Configures the resulting Gson to serialize/unserialize Date instances with a policy
109-
* @param policy
110-
* @return
109+
* @param policy serialization policy
110+
* @return GsonFireBuilder
111111
*/
112112
public GsonFireBuilder dateSerializationPolicy(DateSerializationPolicy policy){
113113
dateSerializationPolicy = policy;
@@ -118,9 +118,9 @@ public GsonFireBuilder dateSerializationPolicy(DateSerializationPolicy policy){
118118
* A given class will be wrapped/unwrapped with a given string
119119
* during serialization/deserialization.
120120
*
121-
* @param clazz
122-
* @param <T>
123-
* @return
121+
* @param clazz class
122+
* @param <T> type
123+
* @return GsonFireBuilder
124124
*/
125125
public <T> GsonFireBuilder wrap(final Class<T> clazz, final String name) {
126126
wrap(clazz, new Mapper<T, String>() {
@@ -136,10 +136,10 @@ public String map(Object from) {
136136
* A given class will be wrapped/unwrapped with a string generated by a mapper
137137
* during serialization/deserialization.
138138
*
139-
* @param clazz
140-
* @param mapper
141-
* @param <T>
142-
* @return
139+
* @param clazz class
140+
* @param mapper mapper
141+
* @param <T> type
142+
* @return GsonFireBuilder
143143
*/
144144
public <T> GsonFireBuilder wrap(Class<T> clazz, Mapper<T, String> mapper) {
145145
wrappedClasses.put(clazz, mapper);
@@ -149,7 +149,7 @@ public <T> GsonFireBuilder wrap(Class<T> clazz, Mapper<T, String> mapper) {
149149
/**
150150
* By enabling this, all methods with the annotation {@link io.gsonfire.annotations.ExposeMethodResult} will
151151
* be evaluated and it result will be added to the resulting json
152-
* @return
152+
* @return GsonFireBuilder
153153
*/
154154
public GsonFireBuilder enableExposeMethodResult(){
155155
this.enableExposeMethodResults = true;
@@ -159,7 +159,7 @@ public GsonFireBuilder enableExposeMethodResult(){
159159
/**
160160
* By enabling this, all exclusion by value strategies specified with the annotation
161161
* {@link io.gsonfire.annotations.ExcludeByValue} will be run to remove specific fields from the resulting json
162-
* @return
162+
* @return GsonFireBuilder
163163
*/
164164
public GsonFireBuilder enableExclusionByValue(){
165165
this.enableExclusionByValueStrategies = true;
@@ -169,7 +169,7 @@ public GsonFireBuilder enableExclusionByValue(){
169169
/**
170170
* By enabling this, all methods with the annotation {@link io.gsonfire.annotations.ExposeMethodResult} will
171171
* be evaluated and it result will be added to the resulting json
172-
* @return
172+
* @return GsonFireBuilder
173173
*/
174174
public GsonFireBuilder enableHooks(Class clazz){
175175
ClassConfig config = getClassConfig(clazz);
@@ -183,7 +183,7 @@ public GsonFireBuilder enableHooks(Class clazz){
183183
* with the resulting json object.
184184
*
185185
* This method has been deprecated and a {@link io.gsonfire.PostProcessor} should be used instead
186-
* @return
186+
* @return GsonFireBuilder
187187
*/
188188
@Deprecated
189189
public GsonFireBuilder enableMergeMaps(Class clazz){
@@ -194,8 +194,8 @@ public GsonFireBuilder enableMergeMaps(Class clazz){
194194
/**
195195
* Sets the serialization TimeZone. This will affect only values that depend on the TimeZone, for example rfc3339
196196
* dates.
197-
* @param timeZone
198-
* @return
197+
* @param timeZone time zone
198+
* @return GsonFireBuilder
199199
*/
200200
public GsonFireBuilder serializeTimeZone(TimeZone timeZone) {
201201
this.serializeTimeZone = timeZone;
@@ -205,10 +205,10 @@ public GsonFireBuilder serializeTimeZone(TimeZone timeZone) {
205205
/**
206206
* Defines a default value for an enum when its String representation does not match any of the enum values.
207207
* The <code>defaultValue</code> can be null.
208-
* @param enumClass
209-
* @param defaultValue
210-
* @param <T>
211-
* @return
208+
* @param enumClass enum class
209+
* @param defaultValue default value
210+
* @param <T> type
211+
* @return GsonFireBuilder
212212
*/
213213
public <T extends Enum> GsonFireBuilder enumDefaultValue(Class<T> enumClass, T defaultValue) {
214214
this.enumDefaultValues.put(enumClass, defaultValue);
@@ -222,7 +222,7 @@ public GsonFireBuilder addSerializationExclusionStrategy(FireExclusionStrategy e
222222

223223
/**
224224
* Returns a new instance of the good old {@link GsonBuilder}
225-
* @return
225+
* @return a new instance of the good old {@link GsonBuilder}
226226
*/
227227
public GsonBuilder createGsonBuilder(){
228228
Set<TypeToken> alreadyResolvedTypeTokensRegistry = Collections.newSetFromMap(new ConcurrentHashMap<TypeToken, Boolean>());
@@ -261,7 +261,7 @@ public GsonBuilder createGsonBuilder(){
261261

262262
/**
263263
* Returns a new {@link Gson} instance
264-
* @return
264+
* @return a new {@link Gson} instance
265265
*/
266266
public Gson createGson(){
267267
return createGsonBuilder().create();

src/main/java/io/gsonfire/PostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.google.gson.JsonElement;
55

66
/**
7-
* @autor: julio
7+
* @author julio
88
*/
99
public interface PostProcessor<T> {
1010

src/main/java/io/gsonfire/PreProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.google.gson.JsonElement;
55

66
/**
7-
* @autor: julio
7+
* @author julio
88
*/
99
public interface PreProcessor<T> {
1010

src/main/java/io/gsonfire/TypeSelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.google.gson.JsonElement;
44

55
/**
6-
* @autor: julio
6+
* @author julio
77
*/
88
public interface TypeSelector<T> {
99

src/main/java/io/gsonfire/annotations/ExposeMethodResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.lang.annotation.Target;
77

88
/**
9-
* @autor: julio
9+
* @author julio
1010
*/
1111
@Retention(RetentionPolicy.RUNTIME)
1212
@Target(ElementType.METHOD)

src/main/java/io/gsonfire/annotations/MergeMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Causes the Map to be merged with the object that contains it
1010
*
1111
* This class has been deprecated and a {@link io.gsonfire.PostProcessor} should be used instead
12-
* @autor: julio
12+
* @author julio
1313
*/
1414
@Retention(RetentionPolicy.RUNTIME)
1515
@Target(ElementType.FIELD)

src/main/java/io/gsonfire/annotations/PostDeserialize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.lang.annotation.Target;
77

88
/**
9-
* @autor: julio
9+
* @author julio
1010
*/
1111
@Retention(RetentionPolicy.RUNTIME)
1212
@Target(ElementType.METHOD)

src/main/java/io/gsonfire/annotations/PreSerialize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.lang.annotation.Target;
77

88
/**
9-
* @autor: julio
9+
* @author julio
1010
*/
1111
@Retention(RetentionPolicy.RUNTIME)
1212
@Target(ElementType.METHOD)

0 commit comments

Comments
 (0)