Reverting r499.
This commit is contained in:
parent
0e17041c8b
commit
8297437610
@ -54,7 +54,7 @@ public class ExposeAnnotationBasedExclusionStrategyTest extends TestCase {
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private static class MockObject {
|
private static class MockObject {
|
||||||
@Expose
|
@Expose
|
||||||
private final int exposedField = 0;
|
public final int exposedField = 0;
|
||||||
private final int hiddenField = 0;
|
public final int hiddenField = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,6 @@ public class SerializedNameAnnotationInterceptingNamingPolicyTest extends TestCa
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private static class SomeObject {
|
private static class SomeObject {
|
||||||
@SerializedName(ANNOTATED_FIELD_NAME) public final int fieldWithAnnotation = 1;
|
@SerializedName(ANNOTATED_FIELD_NAME) public final int fieldWithAnnotation = 1;
|
||||||
private final int fieldWithoutAnnotation = 1;
|
public final int fieldWithoutAnnotation = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -229,25 +229,25 @@ public class TypeInfoFactoryTest extends TestCase {
|
|||||||
TEST_1, TEST_2;
|
TEST_1, TEST_2;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String simpleField;
|
public String simpleField;
|
||||||
private TestEnum enumField;
|
public TestEnum enumField;
|
||||||
private List<String> simpleParameterizedType;
|
public List<String> simpleParameterizedType;
|
||||||
private List<List<String>> simpleNestedParameterizedType;
|
public List<List<String>> simpleNestedParameterizedType;
|
||||||
private List<String>[] simpleGenericArray;
|
public List<String>[] simpleGenericArray;
|
||||||
|
|
||||||
private T typeVariableObj;
|
public T typeVariableObj;
|
||||||
private T[] typeVariableArray;
|
public T[] typeVariableArray;
|
||||||
private T[][][] mutliDimensionalTypeVariableArray;
|
public T[][][] mutliDimensionalTypeVariableArray;
|
||||||
private List<T> listOfTypeVariables;
|
public List<T> listOfTypeVariables;
|
||||||
private List<List<T>> listOfListsOfTypeVariables;
|
public List<List<T>> listOfListsOfTypeVariables;
|
||||||
private List<T>[] listOfTypeVariablesArray;
|
public List<T>[] listOfTypeVariablesArray;
|
||||||
|
|
||||||
private List<?> listWithWildcard;
|
public List<?> listWithWildcard;
|
||||||
private List<?>[] arrayOfListWithWildcard;
|
public List<?>[] arrayOfListWithWildcard;
|
||||||
private List<? extends String> listWithStringWildcard;
|
public List<? extends String> listWithStringWildcard;
|
||||||
private List<? extends String>[] arrayOfListWithStringWildcard;
|
public List<? extends String>[] arrayOfListWithStringWildcard;
|
||||||
|
|
||||||
private List<? extends T> listWithTypeVariableWildcard;
|
public List<? extends T> listWithTypeVariableWildcard;
|
||||||
private List<? extends T>[] arrayOfListWithTypeVariableWildcard;
|
public List<? extends T>[] arrayOfListWithTypeVariableWildcard;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,6 +69,6 @@ public class VersionExclusionStrategyTest extends TestCase {
|
|||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@Since(VERSION)
|
@Since(VERSION)
|
||||||
private final int someField = 0;
|
public final int someField = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -285,7 +285,7 @@ public class CollectionTest extends TestCase {
|
|||||||
|
|
||||||
// For use by Gson
|
// For use by Gson
|
||||||
@SuppressWarnings({ "unchecked", "unused" })
|
@SuppressWarnings({ "unchecked", "unused" })
|
||||||
private ObjectWithWildcardCollection() {
|
public ObjectWithWildcardCollection() {
|
||||||
this(Collections.EMPTY_LIST);
|
this(Collections.EMPTY_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,9 +123,9 @@ public class ConcurrencyTest extends TestCase {
|
|||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private static class MyObject {
|
private static class MyObject {
|
||||||
private String a;
|
String a;
|
||||||
private String b;
|
String b;
|
||||||
private int i;
|
int i;
|
||||||
|
|
||||||
MyObject() {
|
MyObject() {
|
||||||
this("hello", "world", 42);
|
this("hello", "world", 42);
|
||||||
|
@ -170,7 +170,7 @@ public class CustomTypeAdaptersTest extends TestCase {
|
|||||||
|
|
||||||
private static class Derived extends Base {
|
private static class Derived extends Base {
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private int derivedValue = 3;
|
int derivedValue = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ public class JsonTreeTest extends TestCase {
|
|||||||
|
|
||||||
private static class SubTypeOfBagOfPrimitives extends BagOfPrimitives {
|
private static class SubTypeOfBagOfPrimitives extends BagOfPrimitives {
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private float f = 1.2F;
|
float f = 1.2F;
|
||||||
public SubTypeOfBagOfPrimitives(long l, int i, boolean b, String string, float f) {
|
public SubTypeOfBagOfPrimitives(long l, int i, boolean b, String string, float f) {
|
||||||
super(l, i, b, string);
|
super(l, i, b, string);
|
||||||
this.f = f;
|
this.f = f;
|
||||||
|
@ -173,7 +173,7 @@ public class MapTest extends TestCase {
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private int foo = 10;
|
int foo = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testMapSubclassSerialization() {
|
public void testMapSubclassSerialization() {
|
||||||
@ -250,7 +250,7 @@ public class MapTest extends TestCase {
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private int foo = 10;
|
int foo = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,8 +84,8 @@ public class NamingPolicyTest extends TestCase {
|
|||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private static class ClassWithDuplicateFields {
|
private static class ClassWithDuplicateFields {
|
||||||
private Integer a;
|
public Integer a;
|
||||||
@SerializedName("a") private Double b;
|
@SerializedName("a") public Double b;
|
||||||
|
|
||||||
public ClassWithDuplicateFields(Integer a) {
|
public ClassWithDuplicateFields(Integer a) {
|
||||||
this(a, null);
|
this(a, null);
|
||||||
|
@ -153,9 +153,9 @@ public class NullObjectAndFieldTest extends TestCase {
|
|||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private static class ClassWithMembers {
|
private static class ClassWithMembers {
|
||||||
private String str;
|
String str;
|
||||||
private int[] array;
|
int[] array;
|
||||||
private Collection<String> col;
|
Collection<String> col;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class ClassWithObjectsSerializer implements JsonSerializer<ClassWithObjects> {
|
private static class ClassWithObjectsSerializer implements JsonSerializer<ClassWithObjects> {
|
||||||
|
@ -367,7 +367,7 @@ public class ObjectTest extends TestCase {
|
|||||||
|
|
||||||
private static class ClassWithObjectField {
|
private static class ClassWithObjectField {
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private Object member;
|
Object member;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testInnerClassSerialization() {
|
public void testInnerClassSerialization() {
|
||||||
@ -393,7 +393,7 @@ public class ObjectTest extends TestCase {
|
|||||||
|
|
||||||
private static class Parent {
|
private static class Parent {
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private int value1 = 1;
|
int value1 = 1;
|
||||||
private class Child {
|
private class Child {
|
||||||
int value2 = 2;
|
int value2 = 2;
|
||||||
}
|
}
|
||||||
|
@ -466,11 +466,11 @@ public class ParameterizedTypesTest extends TestCase {
|
|||||||
// Begin: tests to reproduce issue 103
|
// Begin: tests to reproduce issue 103
|
||||||
private static class Quantity {
|
private static class Quantity {
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private int q = 10;
|
int q = 10;
|
||||||
}
|
}
|
||||||
private static class MyQuantity extends Quantity {
|
private static class MyQuantity extends Quantity {
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private int q2 = 20;
|
int q2 = 20;
|
||||||
}
|
}
|
||||||
private interface Measurable<T> {
|
private interface Measurable<T> {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user