From e6496fddd6b0cee8bb8ac254e486467811a55be5 Mon Sep 17 00:00:00 2001 From: Joel Leitch Date: Sat, 9 Jan 2010 22:48:53 +0000 Subject: [PATCH] Update JavaDoc to link to the correct interface (FieldNamingStrategy2). --- gson/src/main/java/com/google/gson/JavaFieldNamingPolicy.java | 4 ++-- gson/src/main/java/com/google/gson/LowerCaseNamingPolicy.java | 2 +- .../java/com/google/gson/ModifyFirstLetterNamingPolicy.java | 2 +- .../SerializedNameAnnotationInterceptingNamingPolicy.java | 4 ++-- gson/src/main/java/com/google/gson/UpperCaseNamingPolicy.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gson/src/main/java/com/google/gson/JavaFieldNamingPolicy.java b/gson/src/main/java/com/google/gson/JavaFieldNamingPolicy.java index 83f16809..d93a1331 100644 --- a/gson/src/main/java/com/google/gson/JavaFieldNamingPolicy.java +++ b/gson/src/main/java/com/google/gson/JavaFieldNamingPolicy.java @@ -21,7 +21,7 @@ import java.lang.reflect.Type; import java.util.Collection; /** - * A simple implementation of the {@link FieldNamingStrategy} interface such that it does not + * A simple implementation of the {@link FieldNamingStrategy2} interface such that it does not * perform any string translation of the incoming field name. * *

The following is an example:

@@ -38,7 +38,7 @@ import java.util.Collection; * assert("integerField".equals(translatedFieldName)); * * - *

This is the default {@link FieldNamingStrategy} used by Gson.

+ *

This is the default {@link FieldNamingStrategy2} used by Gson.

* * @author Joel Leitch */ diff --git a/gson/src/main/java/com/google/gson/LowerCaseNamingPolicy.java b/gson/src/main/java/com/google/gson/LowerCaseNamingPolicy.java index 3a3ce58a..04ddace9 100644 --- a/gson/src/main/java/com/google/gson/LowerCaseNamingPolicy.java +++ b/gson/src/main/java/com/google/gson/LowerCaseNamingPolicy.java @@ -21,7 +21,7 @@ import java.lang.reflect.Type; import java.util.Collection; /** - * A {@link FieldNamingStrategy} that ensures the JSON field names consist of only + * A {@link FieldNamingStrategy2} that ensures the JSON field names consist of only * lower case letters. * *

The following is an example:

diff --git a/gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java b/gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java index f611bdc6..7d123262 100644 --- a/gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java +++ b/gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java @@ -21,7 +21,7 @@ import java.lang.reflect.Type; import java.util.Collection; /** - * A {@link FieldNamingStrategy} that ensures the JSON field names begins with + * A {@link FieldNamingStrategy2} that ensures the JSON field names begins with * an upper case letter. * *

The following is an example:

diff --git a/gson/src/main/java/com/google/gson/SerializedNameAnnotationInterceptingNamingPolicy.java b/gson/src/main/java/com/google/gson/SerializedNameAnnotationInterceptingNamingPolicy.java index bf898d3f..4f1de30f 100644 --- a/gson/src/main/java/com/google/gson/SerializedNameAnnotationInterceptingNamingPolicy.java +++ b/gson/src/main/java/com/google/gson/SerializedNameAnnotationInterceptingNamingPolicy.java @@ -19,10 +19,10 @@ package com.google.gson; import com.google.gson.annotations.SerializedName; /** - * A {@link FieldNamingStrategy} that acts as a chain of responsibility. If the + * A {@link FieldNamingStrategy2} that acts as a chain of responsibility. If the * {@link com.google.gson.annotations.SerializedName} annotation is applied to a field then this * strategy will translate the name to the {@code serializedName.value()}; otherwise it delegates - * to the wrapped {@link FieldNamingStrategy}. + * to the wrapped {@link FieldNamingStrategy2}. * *

NOTE: this class performs JSON field name validation for any of the fields marked with * an {@code @SerializedName} annotation.

diff --git a/gson/src/main/java/com/google/gson/UpperCaseNamingPolicy.java b/gson/src/main/java/com/google/gson/UpperCaseNamingPolicy.java index 1bb33f2e..a118750c 100644 --- a/gson/src/main/java/com/google/gson/UpperCaseNamingPolicy.java +++ b/gson/src/main/java/com/google/gson/UpperCaseNamingPolicy.java @@ -21,7 +21,7 @@ import java.lang.reflect.Type; import java.util.Collection; /** - * A {@link FieldNamingStrategy} that ensures the JSON field names consist of only + * A {@link FieldNamingStrategy2} that ensures the JSON field names consist of only * upper case letters. * *

The following is an example: