Implement suggestions from self review of r350.
This commit is contained in:
parent
54a480774d
commit
859af0025c
@ -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) {
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user