Incorporated feedback from r718
This commit is contained in:
parent
feb9617bf0
commit
56b7ab1b71
|
@ -23,7 +23,7 @@ import com.google.gson.annotations.Expose;
|
||||||
*
|
*
|
||||||
* @author Joel Leitch
|
* @author Joel Leitch
|
||||||
*/
|
*/
|
||||||
public class ExposeAnnotationDeserializationExclusionStrategy implements ExclusionStrategy {
|
final class ExposeAnnotationDeserializationExclusionStrategy implements ExclusionStrategy {
|
||||||
public boolean shouldSkipClass(Class<?> clazz) {
|
public boolean shouldSkipClass(Class<?> clazz) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ import com.google.gson.annotations.Expose;
|
||||||
*
|
*
|
||||||
* @author Joel Leitch
|
* @author Joel Leitch
|
||||||
*/
|
*/
|
||||||
public class ExposeAnnotationSerializationExclusionStrategy implements ExclusionStrategy {
|
final class ExposeAnnotationSerializationExclusionStrategy implements ExclusionStrategy {
|
||||||
public boolean shouldSkipClass(Class<?> clazz) {
|
public boolean shouldSkipClass(Class<?> clazz) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.lang.reflect.Modifier;
|
||||||
*
|
*
|
||||||
* @author Joel Leitch
|
* @author Joel Leitch
|
||||||
*/
|
*/
|
||||||
class InnerClassExclusionStrategy implements ExclusionStrategy {
|
final class InnerClassExclusionStrategy implements ExclusionStrategy {
|
||||||
|
|
||||||
public boolean shouldSkipField(FieldAttributes f) {
|
public boolean shouldSkipField(FieldAttributes f) {
|
||||||
return isInnerClass(f.getDeclaredClass());
|
return isInnerClass(f.getDeclaredClass());
|
||||||
|
|
|
@ -26,7 +26,7 @@ package com.google.gson;
|
||||||
*
|
*
|
||||||
* @since 1.4
|
* @since 1.4
|
||||||
*/
|
*/
|
||||||
class SyntheticFieldExclusionStrategy implements ExclusionStrategy {
|
final class SyntheticFieldExclusionStrategy implements ExclusionStrategy {
|
||||||
private final boolean skipSyntheticFields;
|
private final boolean skipSyntheticFields;
|
||||||
|
|
||||||
SyntheticFieldExclusionStrategy(boolean skipSyntheticFields) {
|
SyntheticFieldExclusionStrategy(boolean skipSyntheticFields) {
|
||||||
|
|
|
@ -22,7 +22,7 @@ package com.google.gson;
|
||||||
*
|
*
|
||||||
* @author Joel Leitch
|
* @author Joel Leitch
|
||||||
*/
|
*/
|
||||||
public class MockExclusionStrategy implements ExclusionStrategy {
|
final class MockExclusionStrategy implements ExclusionStrategy {
|
||||||
private final boolean skipClass;
|
private final boolean skipClass;
|
||||||
private final boolean skipField;
|
private final boolean skipField;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user