From 859af0025cb63fba5da3a4a6b85f432cc2a41c47 Mon Sep 17 00:00:00 2001 From: Joel Leitch Date: Sun, 28 Dec 2008 02:05:40 +0000 Subject: [PATCH] Implement suggestions from self review of r350. --- gson/src/main/java/com/google/gson/GsonBuilder.java | 5 +---- .../java/com/google/gson/InnerClassExclusionStrategy.java | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java index 6194d1dc..abc86cd3 100644 --- a/gson/src/main/java/com/google/gson/GsonBuilder.java +++ b/gson/src/main/java/com/google/gson/GsonBuilder.java @@ -148,10 +148,7 @@ public final class GsonBuilder { /** * Configures Gson to include or exclude inner classes * - * @param modifiers the field modifiers. You must use the modifiers specified in the - * {@link java.lang.reflect.Modifier} class. For example, - * {@link java.lang.reflect.Modifier#TRANSIENT}, - * {@link java.lang.reflect.Modifier#STATIC}. + * @param value the boolean value on whether or not {@code Gson} should serialize inner classes * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern */ public GsonBuilder serializeInnerClasses(boolean value) { diff --git a/gson/src/main/java/com/google/gson/InnerClassExclusionStrategy.java b/gson/src/main/java/com/google/gson/InnerClassExclusionStrategy.java index a8d957b5..8923fbc3 100644 --- a/gson/src/main/java/com/google/gson/InnerClassExclusionStrategy.java +++ b/gson/src/main/java/com/google/gson/InnerClassExclusionStrategy.java @@ -24,7 +24,7 @@ import java.lang.reflect.Modifier; * * @author Joel Leitch */ -public class InnerClassExclusionStrategy implements ExclusionStrategy { +class InnerClassExclusionStrategy implements ExclusionStrategy { public boolean shouldSkipField(Field f) { return isInnerClass(f.getType());