Implement suggestions from self review of r350.

This commit is contained in:
Joel Leitch 2008-12-28 02:05:40 +00:00
parent 54a480774d
commit 859af0025c
2 changed files with 2 additions and 5 deletions

View File

@ -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) {

View File

@ -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());