SYMBOL INDEX (3814 symbols across 244 files) FILE: extras/src/main/java/com/google/gson/extras/examples/rawcollections/RawCollectionsExample.java class RawCollectionsExample (line 24) | @SuppressWarnings({"PrivateConstructorForUtilityClass", "SystemOut"}) class Event (line 26) | static class Event { method Event (line 30) | private Event(String name, String source) { method toString (line 35) | @Override method main (line 41) | @SuppressWarnings({"unchecked", "rawtypes"}) FILE: extras/src/main/java/com/google/gson/interceptors/InterceptorFactory.java class InterceptorFactory (line 28) | public final class InterceptorFactory implements TypeAdapterFactory { method create (line 29) | @Override class InterceptorAdapter (line 40) | static class InterceptorAdapter extends TypeAdapter { method InterceptorAdapter (line 44) | @SuppressWarnings("unchecked") // ? method write (line 54) | @Override method read (line 59) | @Override FILE: extras/src/main/java/com/google/gson/interceptors/JsonPostDeserializer.java type JsonPostDeserializer (line 27) | public interface JsonPostDeserializer { method postDeserialize (line 30) | public void postDeserialize(T object); FILE: extras/src/main/java/com/google/gson/typeadapters/PostConstructAdapterFactory.java class PostConstructAdapterFactory (line 30) | public class PostConstructAdapterFactory implements TypeAdapterFactory { method create (line 32) | @Override class PostConstructAdapter (line 48) | static final class PostConstructAdapter extends TypeAdapter { method PostConstructAdapter (line 52) | public PostConstructAdapter(TypeAdapter delegate, Method method) { method read (line 57) | @Override method write (line 75) | @Override FILE: extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java class RuntimeTypeAdapterFactory (line 158) | public final class RuntimeTypeAdapterFactory implements TypeAdapterFa... method RuntimeTypeAdapterFactory (line 166) | private RuntimeTypeAdapterFactory(Class baseType, String typeFieldN... method of (line 181) | public static RuntimeTypeAdapterFactory of( method of (line 190) | public static RuntimeTypeAdapterFactory of(Class baseType, S... method of (line 198) | public static RuntimeTypeAdapterFactory of(Class baseType) { method recognizeSubtypes (line 206) | @CanIgnoreReturnValue method registerSubtype (line 218) | @CanIgnoreReturnValue method registerSubtype (line 238) | @CanIgnoreReturnValue method create (line 243) | @Override FILE: extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java class UtcDateTypeAdapter (line 33) | public final class UtcDateTypeAdapter extends TypeAdapter { method write (line 36) | @Override method read (line 46) | @Override method format (line 75) | private static String format(Date date, boolean millis, TimeZone tz) { method padInt (line 123) | private static void padInt(StringBuilder buffer, int value, int length) { method parse (line 140) | private static Date parse(String date, ParsePosition pos) throws Parse... method checkOffset (line 242) | private static boolean checkOffset(String value, int offset, char expe... method parseInt (line 255) | private static int parseInt(String value, int beginIndex, int endIndex) FILE: extras/src/test/java/com/google/gson/interceptors/InterceptorTest.java class InterceptorTest (line 43) | public final class InterceptorTest { method setUp (line 47) | @Before method testExceptionsPropagated (line 56) | @Test method testTopLevelClass (line 62) | @Test method testList (line 68) | @Test method testCollection (line 76) | @Test method testMapKeyAndValues (line 85) | @Test method testField (line 103) | @Test method testCustomTypeAdapter (line 109) | @Test method testDirectInvocationOfTypeAdapter (line 138) | @Test class UserGroup (line 145) | @SuppressWarnings("unused") class User (line 151) | @Intercept(postDeserialize = UserValidator.class) method User (line 160) | User(String name, String password) { class UserValidator (line 166) | public static final class UserValidator implements JsonPostDeserialize... method postDeserialize (line 167) | @Override class Address (line 178) | @Intercept(postDeserialize = AddressValidator.class) class AddressValidator (line 189) | public static final class AddressValidator implements JsonPostDeserial... method postDeserialize (line 190) | @Override FILE: extras/src/test/java/com/google/gson/typeadapters/PostConstructAdapterFactoryTest.java class PostConstructAdapterFactoryTest (line 30) | public class PostConstructAdapterFactoryTest { method test (line 31) | @Test method testList (line 47) | @Test class Sandwich (line 67) | @SuppressWarnings({"overrides", "EqualsHashCode"}) // for missing hash... method Sandwich (line 72) | public Sandwich(String bread, String cheese) { method validate (line 77) | @PostConstruct method equals (line 84) | @Override class MultipleSandwiches (line 98) | @SuppressWarnings({"overrides", "EqualsHashCode"}) // for missing hash... method MultipleSandwiches (line 102) | public MultipleSandwiches(List sandwiches) { method equals (line 106) | @Override FILE: extras/src/test/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactoryTest.java class RuntimeTypeAdapterFactoryTest (line 28) | public final class RuntimeTypeAdapterFactoryTest { method testRuntimeTypeAdapter (line 30) | @Test method testRuntimeTypeAdapterRecognizeSubtypes (line 45) | @Test method testRuntimeTypeIsBaseType (line 65) | @Test method testNullBaseType (line 80) | @Test method testNullTypeFieldName (line 85) | @Test method testNullSubtype (line 92) | @Test method testNullLabel (line 99) | @Test method testDuplicateSubtype (line 106) | @Test method testDuplicateLabel (line 117) | @Test method testDeserializeMissingTypeField (line 128) | @Test method testDeserializeMissingSubtype (line 145) | @Test method testSerializeMissingSubtype (line 162) | @Test method testSerializeCollidingTypeFieldName (line 179) | @Test method testSerializeWrappedNullValue (line 197) | @Test class BillingInstrumentWrapper (line 211) | static class BillingInstrumentWrapper { method BillingInstrumentWrapper (line 214) | BillingInstrumentWrapper(BillingInstrument instrument) { class BillingInstrument (line 219) | static class BillingInstrument { method BillingInstrument (line 222) | BillingInstrument(String ownerName) { class CreditCard (line 227) | static class CreditCard extends BillingInstrument { method CreditCard (line 230) | CreditCard(String ownerName, int cvv) { class BankTransfer (line 236) | static class BankTransfer extends BillingInstrument { method BankTransfer (line 239) | BankTransfer(String ownerName, int bankAccount) { FILE: extras/src/test/java/com/google/gson/typeadapters/UtcDateTypeAdapterTest.java class UtcDateTypeAdapterTest (line 32) | @SuppressWarnings("JavaUtilDate") method testLocalTimeZone (line 37) | @Test method testDifferentTimeZones (line 45) | @Test method testUtcDatesOnJdkBefore1_7 (line 61) | @Test method testUtcWithJdk7Default (line 69) | @Test method testNullDateSerialization (line 82) | @Test method testWellFormedParseException (line 88) | @Test FILE: gson/src/main/java-templates/com/google/gson/internal/GsonBuildConfig.java class GsonBuildConfig (line 25) | public final class GsonBuildConfig { method GsonBuildConfig (line 31) | private GsonBuildConfig() {} FILE: gson/src/main/java/com/google/gson/ExclusionStrategy.java type ExclusionStrategy (line 94) | public interface ExclusionStrategy { method shouldSkipField (line 102) | boolean shouldSkipField(FieldAttributes f); method shouldSkipClass (line 110) | boolean shouldSkipClass(Class clazz); FILE: gson/src/main/java/com/google/gson/FieldAttributes.java class FieldAttributes (line 35) | public final class FieldAttributes { method FieldAttributes (line 43) | public FieldAttributes(Field f) { method getDeclaringClass (line 52) | public Class getDeclaringClass() { method getName (line 61) | public String getName() { method getDeclaredType (line 84) | public Type getDeclaredType() { method getDeclaredClass (line 105) | public Class getDeclaredClass() { method getAnnotation (line 116) | public T getAnnotation(Class annotation) { method getAnnotations (line 126) | public Collection getAnnotations() { method hasModifier (line 141) | public boolean hasModifier(int modifier) { method toString (line 145) | @Override FILE: gson/src/main/java/com/google/gson/FieldNamingPolicy.java type FieldNamingPolicy (line 31) | public enum FieldNamingPolicy implements FieldNamingStrategy { method translateName (line 35) | @Override method translateName (line 53) | @Override method translateName (line 73) | @Override method translateName (line 95) | @Override method translateName (line 115) | @Override method translateName (line 142) | @Override method translateName (line 169) | @Override method separateCamelCase (line 179) | static String separateCamelCase(String name, char separator) { method upperCaseFirstLetter (line 192) | static String upperCaseFirstLetter(String s) { FILE: gson/src/main/java/com/google/gson/FieldNamingStrategy.java type FieldNamingStrategy (line 33) | public interface FieldNamingStrategy { method translateName (line 42) | String translateName(Field f); method alternateNames (line 52) | default List alternateNames(Field f) { FILE: gson/src/main/java/com/google/gson/FormattingStyle.java class FormattingStyle (line 39) | public class FormattingStyle { method FormattingStyle (line 66) | private FormattingStyle(String newline, String indent, boolean spaceAf... method withNewline (line 95) | public FormattingStyle withNewline(String newline) { method withIndent (line 108) | public FormattingStyle withIndent(String indent) { method withSpaceAfterSeparators (line 124) | public FormattingStyle withSpaceAfterSeparators(boolean spaceAfterSepa... method getNewline (line 134) | public String getNewline() { method getIndent (line 144) | public String getIndent() { method usesSpaceAfterSeparators (line 153) | public boolean usesSpaceAfterSeparators() { FILE: gson/src/main/java/com/google/gson/Gson.java class Gson (line 135) | public final class Gson { method Gson (line 222) | public Gson() { method Gson (line 226) | Gson(GsonBuilder builder) { method newBuilder (line 266) | public GsonBuilder newBuilder() { method excluder (line 274) | @Deprecated method fieldNamingStrategy (line 284) | public FieldNamingStrategy fieldNamingStrategy() { method serializeNulls (line 294) | public boolean serializeNulls() { method htmlSafe (line 304) | public boolean htmlSafe() { method getAdapter (line 319) | public TypeAdapter getAdapter(TypeToken type) { method getAdapter (line 386) | public TypeAdapter getAdapter(Class type) { method getDelegateAdapter (line 451) | public TypeAdapter getDelegateAdapter(TypeAdapterFactory skipPa... method toJsonTree (line 496) | public JsonElement toJsonTree(Object src) { method toJsonTree (line 521) | public JsonElement toJsonTree(Object src, Type typeOfSrc) { method toJson (line 542) | public String toJson(Object src) { method toJson (line 567) | public String toJson(Object src, Type typeOfSrc) { method toJson (line 589) | public void toJson(Object src, Appendable writer) throws JsonIOExcepti... method toJson (line 617) | public void toJson(Object src, Type typeOfSrc, Appendable writer) thro... method toJson (line 647) | public void toJson(Object src, Type typeOfSrc, JsonWriter writer) thro... method toJson (line 685) | public String toJson(JsonElement jsonElement) { method toJson (line 699) | public void toJson(JsonElement jsonElement, Appendable writer) throws ... method toJson (line 728) | public void toJson(JsonElement jsonElement, JsonWriter writer) throws ... method newJsonWriter (line 774) | public JsonWriter newJsonWriter(Writer writer) throws IOException { method newJsonReader (line 798) | public JsonReader newJsonReader(Reader reader) { method fromJson (line 827) | public T fromJson(String json, Class classOfT) throws JsonSynta... method fromJson (line 855) | @SuppressWarnings({"unchecked", "TypeParameterUnusedInFormals"}) method fromJson (line 886) | public T fromJson(String json, TypeToken typeOfT) throws JsonSy... method fromJson (line 917) | public T fromJson(Reader json, Class classOfT) method fromJson (line 947) | @SuppressWarnings({"unchecked", "TypeParameterUnusedInFormals"}) method fromJson (line 978) | public T fromJson(Reader json, TypeToken typeOfT) method fromJson (line 1022) | @SuppressWarnings({"unchecked", "TypeParameterUnusedInFormals"}) method fromJson (line 1064) | public T fromJson(JsonReader reader, TypeToken typeOfT) method fromJson (line 1136) | public T fromJson(JsonElement json, Class classOfT) throws Json... method fromJson (line 1162) | @SuppressWarnings({"unchecked", "TypeParameterUnusedInFormals"}) method fromJson (line 1189) | public T fromJson(JsonElement json, TypeToken typeOfT) throws J... method assertFullConsumption (line 1196) | private static void assertFullConsumption(Object obj, JsonReader reade... class FutureTypeAdapter (line 1216) | static class FutureTypeAdapter extends SerializationDelegatingTypeA... method setDelegate (line 1219) | public void setDelegate(TypeAdapter typeAdapter) { method delegate (line 1226) | private TypeAdapter delegate() { method getSerializationDelegate (line 1239) | @Override method read (line 1244) | @Override method write (line 1249) | @Override method toString (line 1255) | @Override FILE: gson/src/main/java/com/google/gson/GsonBuilder.java class GsonBuilder (line 92) | public final class GsonBuilder { method GsonBuilder (line 157) | public GsonBuilder() {} method GsonBuilder (line 165) | GsonBuilder(Gson gson) { method setVersion (line 203) | @CanIgnoreReturnValue method excludeFieldsWithModifiers (line 226) | @CanIgnoreReturnValue method generateNonExecutableJson (line 241) | @CanIgnoreReturnValue method excludeFieldsWithoutExposeAnnotation (line 257) | @CanIgnoreReturnValue method serializeNulls (line 270) | @CanIgnoreReturnValue method enableComplexMapKeySerialization (line 358) | @CanIgnoreReturnValue method disableInnerClassSerialization (line 385) | @CanIgnoreReturnValue method setLongSerializationPolicy (line 399) | @CanIgnoreReturnValue method setFieldNamingPolicy (line 411) | @CanIgnoreReturnValue method setFieldNamingStrategy (line 428) | @CanIgnoreReturnValue method setObjectToNumberStrategy (line 442) | @CanIgnoreReturnValue method setNumberToNumberStrategy (line 456) | @CanIgnoreReturnValue method setExclusionStrategies (line 487) | @CanIgnoreReturnValue method addSerializationExclusionStrategy (line 510) | @CanIgnoreReturnValue method addDeserializationExclusionStrategy (line 531) | @CanIgnoreReturnValue method setPrettyPrinting (line 547) | @CanIgnoreReturnValue method setFormattingStyle (line 561) | @CanIgnoreReturnValue method setLenient (line 577) | @Deprecated method setStrictness (line 599) | @CanIgnoreReturnValue method disableHtmlEscaping (line 612) | @CanIgnoreReturnValue method setDateFormat (line 637) | @CanIgnoreReturnValue method setDateFormat (line 671) | @Deprecated method setDateFormat (line 695) | @CanIgnoreReturnValue method checkDateFormatStyle (line 703) | private static int checkDateFormatStyle(int style) { method registerTypeAdapter (line 738) | @CanIgnoreReturnValue method hasNonOverridableAdapter (line 773) | private static boolean hasNonOverridableAdapter(Type type) { method registerTypeAdapterFactory (line 794) | @CanIgnoreReturnValue method registerTypeHierarchyAdapter (line 817) | @CanIgnoreReturnValue method serializeSpecialFloatingPointValues (line 861) | @CanIgnoreReturnValue method disableJdkUnsafe (line 882) | @CanIgnoreReturnValue method addReflectionAccessFilter (line 908) | @CanIgnoreReturnValue method create (line 921) | public Gson create() { method createFactories (line 925) | List createFactories( method newImmutableList (line 1004) | static List newImmutableList(Collection collection) { method doubleAdapter (line 1019) | private TypeAdapter doubleAdapter() { method floatAdapter (line 1023) | private TypeAdapter floatAdapter() { method addUserDefinedAdapters (line 1027) | private void addUserDefinedAdapters(List all) { method addDateTypeAdapters (line 1042) | private void addDateTypeAdapters(List factories) { FILE: gson/src/main/java/com/google/gson/InstanceCreator.java type InstanceCreator (line 80) | public interface InstanceCreator { method createInstance (line 92) | T createInstance(Type type); FILE: gson/src/main/java/com/google/gson/JsonArray.java class JsonArray (line 42) | public final class JsonArray extends JsonElement implements Iterable asList() { method equals (line 423) | @Override method hashCode (line 432) | @Override FILE: gson/src/main/java/com/google/gson/JsonDeserializationContext.java type JsonDeserializationContext (line 28) | public interface JsonDeserializationContext { method deserialize (line 42) | @SuppressWarnings("TypeParameterUnusedInFormals") FILE: gson/src/main/java/com/google/gson/JsonDeserializer.java type JsonDeserializer (line 76) | public interface JsonDeserializer { method deserialize (line 93) | T deserialize(JsonElement json, Type typeOfT, JsonDeserializationConte... FILE: gson/src/main/java/com/google/gson/JsonElement.java class JsonElement (line 96) | public abstract class JsonElement { method JsonElement (line 102) | @Deprecated method deepCopy (line 111) | public abstract JsonElement deepCopy(); method isJsonArray (line 118) | public boolean isJsonArray() { method isJsonObject (line 127) | public boolean isJsonObject() { method isJsonPrimitive (line 136) | public boolean isJsonPrimitive() { method isJsonNull (line 146) | public boolean isJsonNull() { method getAsJsonObject (line 159) | public JsonObject getAsJsonObject() { method getAsJsonArray (line 174) | public JsonArray getAsJsonArray() { method getAsJsonPrimitive (line 190) | public JsonPrimitive getAsJsonPrimitive() { method getAsJsonNull (line 206) | @CanIgnoreReturnValue // When this method is used only to verify that ... method getAsBoolean (line 223) | public boolean getAsBoolean() { method getAsNumber (line 236) | public Number getAsNumber() { method getAsString (line 249) | public String getAsString() { method getAsDouble (line 263) | public double getAsDouble() { method getAsFloat (line 277) | public float getAsFloat() { method getAsLong (line 291) | public long getAsLong() { method getAsInt (line 305) | public int getAsInt() { method getAsByte (line 320) | public byte getAsByte() { method getAsCharacter (line 336) | @Deprecated method getAsBigDecimal (line 352) | public BigDecimal getAsBigDecimal() { method getAsBigInteger (line 367) | public BigInteger getAsBigInteger() { method getAsShort (line 381) | public short getAsShort() { method toString (line 420) | @Override FILE: gson/src/main/java/com/google/gson/JsonIOException.java class JsonIOException (line 24) | @SuppressWarnings("MemberName") // class name is part of the public API method JsonIOException (line 28) | public JsonIOException(String msg) { method JsonIOException (line 32) | public JsonIOException(String msg, Throwable cause) { method JsonIOException (line 42) | public JsonIOException(Throwable cause) { FILE: gson/src/main/java/com/google/gson/JsonNull.java class JsonNull (line 26) | public final class JsonNull extends JsonElement { method JsonNull (line 39) | @Deprecated method deepCopy (line 49) | @Override method hashCode (line 55) | @Override method equals (line 61) | @Override FILE: gson/src/main/java/com/google/gson/JsonObject.java class JsonObject (line 40) | public final class JsonObject extends JsonElement { method JsonObject (line 44) | @SuppressWarnings("deprecation") // superclass constructor method deepCopy (line 52) | @Override method add (line 69) | public void add(String property, JsonElement value) { method remove (line 81) | @CanIgnoreReturnValue method addProperty (line 93) | public void addProperty(String property, String value) { method addProperty (line 104) | public void addProperty(String property, Number value) { method addProperty (line 115) | public void addProperty(String property, Boolean value) { method addProperty (line 126) | public void addProperty(String property, Character value) { method entrySet (line 136) | public Set> entrySet() { method keySet (line 146) | public Set keySet() { method size (line 156) | public int size() { method isEmpty (line 166) | public boolean isEmpty() { method has (line 176) | public boolean has(String memberName) { method get (line 186) | public JsonElement get(String memberName) { method getAsJsonPrimitive (line 198) | public JsonPrimitive getAsJsonPrimitive(String memberName) { method getAsJsonArray (line 210) | public JsonArray getAsJsonArray(String memberName) { method getAsJsonObject (line 222) | public JsonObject getAsJsonObject(String memberName) { method asMap (line 237) | public Map asMap() { method equals (line 246) | @Override method hashCode (line 255) | @Override FILE: gson/src/main/java/com/google/gson/JsonParseException.java class JsonParseException (line 32) | public class JsonParseException extends RuntimeException { method JsonParseException (line 41) | public JsonParseException(String msg) { method JsonParseException (line 51) | public JsonParseException(String msg, Throwable cause) { method JsonParseException (line 61) | public JsonParseException(Throwable cause) { FILE: gson/src/main/java/com/google/gson/JsonParser.java class JsonParser (line 73) | public final class JsonParser { method JsonParser (line 77) | @Deprecated method parseString (line 91) | public static JsonElement parseString(String json) throws JsonSyntaxEx... method parseReader (line 107) | public static JsonElement parseReader(Reader reader) throws JsonIOExce... method parseReader (line 136) | public static JsonElement parseReader(JsonReader reader) method parse (line 155) | @Deprecated method parse (line 164) | @Deprecated method parse (line 173) | @Deprecated FILE: gson/src/main/java/com/google/gson/JsonPrimitive.java class JsonPrimitive (line 35) | public final class JsonPrimitive extends JsonElement { method JsonPrimitive (line 47) | @SuppressWarnings({"deprecation", "UnnecessaryBoxedVariable"}) method JsonPrimitive (line 57) | @SuppressWarnings("deprecation") // superclass constructor method JsonPrimitive (line 67) | @SuppressWarnings("deprecation") // superclass constructor method JsonPrimitive (line 81) | @SuppressWarnings({"deprecation", "UnnecessaryBoxedVariable"}) method deepCopy (line 93) | @Override method isBoolean (line 103) | public boolean isBoolean() { method getAsBoolean (line 113) | @Override method isNumber (line 127) | public boolean isNumber() { method getAsNumber (line 138) | @Override method isString (line 153) | public boolean isString() { method getAsString (line 158) | @Override method getAsDouble (line 173) | @Override method getAsBigDecimal (line 181) | @Override method getAsBigInteger (line 191) | @Override method getAsFloat (line 203) | @Override method getAsLong (line 214) | @Override method getAsShort (line 222) | @Override method getAsInt (line 230) | @Override method getAsByte (line 238) | @Override method getAsCharacter (line 248) | @Deprecated method hashCode (line 260) | @Override method equals (line 281) | @Override method isIntegral (line 317) | private static boolean isIntegral(JsonPrimitive primitive) { FILE: gson/src/main/java/com/google/gson/JsonSerializationContext.java type JsonSerializationContext (line 28) | public interface JsonSerializationContext { method serialize (line 36) | JsonElement serialize(Object src); method serialize (line 48) | JsonElement serialize(Object src, Type typeOfSrc); FILE: gson/src/main/java/com/google/gson/JsonSerializer.java type JsonSerializer (line 74) | public interface JsonSerializer { method serialize (line 90) | JsonElement serialize(T src, Type typeOfSrc, JsonSerializationContext ... FILE: gson/src/main/java/com/google/gson/JsonStreamParser.java class JsonStreamParser (line 51) | public final class JsonStreamParser implements Iterator { method JsonStreamParser (line 59) | public JsonStreamParser(String json) { method JsonStreamParser (line 67) | public JsonStreamParser(Reader reader) { method next (line 82) | @Override method hasNext (line 102) | @Override method remove (line 121) | @Override FILE: gson/src/main/java/com/google/gson/JsonSyntaxException.java class JsonSyntaxException (line 24) | public final class JsonSyntaxException extends JsonParseException { method JsonSyntaxException (line 28) | public JsonSyntaxException(String msg) { method JsonSyntaxException (line 32) | public JsonSyntaxException(String msg, Throwable cause) { method JsonSyntaxException (line 42) | public JsonSyntaxException(Throwable cause) { FILE: gson/src/main/java/com/google/gson/LongSerializationPolicy.java type LongSerializationPolicy (line 28) | public enum LongSerializationPolicy { method serialize (line 37) | @Override method typeAdapter (line 45) | @Override method serialize (line 58) | @Override method typeAdapter (line 66) | @Override method serialize (line 78) | public abstract JsonElement serialize(Long value); method typeAdapter (line 82) | abstract TypeAdapter typeAdapter(); FILE: gson/src/main/java/com/google/gson/ReflectionAccessFilter.java type ReflectionAccessFilter (line 45) | public interface ReflectionAccessFilter { type FilterResult (line 51) | enum FilterResult { method check (line 114) | @Override method toString (line 121) | @Override method check (line 145) | @Override method toString (line 152) | @Override method check (line 176) | @Override method toString (line 183) | @Override method check (line 208) | @Override method toString (line 215) | @Override method check (line 227) | FilterResult check(Class rawClass); FILE: gson/src/main/java/com/google/gson/Strictness.java type Strictness (line 20) | public enum Strictness { FILE: gson/src/main/java/com/google/gson/ToNumberPolicy.java type ToNumberPolicy (line 34) | public enum ToNumberPolicy implements ToNumberStrategy { method readNumber (line 41) | @Override method readNumber (line 52) | @Override method readNumber (line 68) | @Override method parseAsDouble (line 82) | private Number parseAsDouble(String value, JsonReader in) throws IOExc... method readNumber (line 102) | @Override FILE: gson/src/main/java/com/google/gson/ToNumberStrategy.java type ToNumberStrategy (line 60) | public interface ToNumberStrategy { method readNumber (line 69) | Number readNumber(JsonReader in) throws IOException; FILE: gson/src/main/java/com/google/gson/TypeAdapter.java class TypeAdapter (line 121) | public abstract class TypeAdapter { method TypeAdapter (line 123) | public TypeAdapter() {} method write (line 130) | public abstract void write(JsonWriter out, T value) throws IOException; method toJson (line 142) | public final void toJson(Writer out, T value) throws IOException { method toJson (line 159) | public final String toJson(T value) { method toJsonTree (line 178) | public final JsonElement toJsonTree(T value) { method read (line 194) | public abstract T read(JsonReader in) throws IOException; method fromJson (line 210) | public final T fromJson(Reader in) throws IOException { method fromJson (line 229) | public final T fromJson(String json) throws IOException { method fromJsonTree (line 241) | public final T fromJsonTree(JsonElement jsonTree) { method nullSafe (line 291) | public final TypeAdapter nullSafe() { class NullSafeTypeAdapter (line 298) | private final class NullSafeTypeAdapter extends TypeAdapter { method write (line 299) | @Override method read (line 308) | @Override method toString (line 317) | @Override FILE: gson/src/main/java/com/google/gson/TypeAdapterFactory.java type TypeAdapterFactory (line 164) | public interface TypeAdapterFactory { method create (line 169) | TypeAdapter create(Gson gson, TypeToken type); FILE: gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java class ConstructorConstructor (line 45) | public final class ConstructorConstructor { method ConstructorConstructor (line 50) | public ConstructorConstructor( method checkInstantiable (line 66) | static String checkInstantiable(Class c) { method get (line 92) | public ObjectConstructor get(TypeToken typeToken) { method get (line 103) | public ObjectConstructor get(TypeToken typeToken, boolean al... method newSpecialCollectionConstructor (line 177) | private static ObjectConstructor newSpecialCollectionConstructor( method newDefaultConstructor (line 217) | private static ObjectConstructor newDefaultConstructor( method newDefaultImplementationConstructor (line 288) | private static ObjectConstructor newDefaultImplementationConstr... method newCollectionConstructor (line 315) | private static ObjectConstructor> newCollectio... method hasStringKeyType (line 339) | private static boolean hasStringKeyType(Type mapType) { method newMapConstructor (line 352) | private static ObjectConstructor> newMapConst... method newUnsafeAllocator (line 384) | private ObjectConstructor newUnsafeAllocator(Class r... method toString (line 420) | @Override class ThrowingObjectConstructor (line 434) | private static final class ThrowingObjectConstructor implements Obj... method ThrowingObjectConstructor (line 437) | ThrowingObjectConstructor(String exceptionMessage) { method construct (line 441) | @Override class InstanceCreatorConstructor (line 451) | private static final class InstanceCreatorConstructor implements Ob... method InstanceCreatorConstructor (line 455) | InstanceCreatorConstructor(InstanceCreator instanceCreator, Type ... method construct (line 460) | @Override FILE: gson/src/main/java/com/google/gson/internal/Excluder.java class Excluder (line 49) | public final class Excluder implements TypeAdapterFactory, Cloneable { method clone (line 60) | @Override method withVersion (line 69) | public Excluder withVersion(double ignoreVersionsAfter) { method withModifiers (line 75) | public Excluder withModifiers(int... modifiers) { method disableInnerClassSerialization (line 84) | public Excluder disableInnerClassSerialization() { method excludeFieldsWithoutExposeAnnotation (line 90) | public Excluder excludeFieldsWithoutExposeAnnotation() { method withExclusionStrategy (line 96) | public Excluder withExclusionStrategy( method create (line 110) | @Override method excludeField (line 158) | public boolean excludeField(Field field, boolean serialize) { method excludeClass (line 197) | public boolean excludeClass(Class clazz, boolean serialize) { method isInnerClass (line 234) | private static boolean isInnerClass(Class clazz) { method isValidVersion (line 238) | private boolean isValidVersion(Since since, Until until) { method isValidSince (line 242) | private boolean isValidSince(Since annotation) { method isValidUntil (line 250) | private boolean isValidUntil(Until annotation) { FILE: gson/src/main/java/com/google/gson/internal/GsonTypes.java class GsonTypes (line 44) | public final class GsonTypes { method GsonTypes (line 47) | private GsonTypes() { method newParameterizedTypeWithOwner (line 57) | public static ParameterizedType newParameterizedTypeWithOwner( method arrayOf (line 67) | public static GenericArrayType arrayOf(Type componentType) { method subtypeOf (line 77) | public static WildcardType subtypeOf(Type bound) { method supertypeOf (line 91) | public static WildcardType supertypeOf(Type bound) { method canonicalize (line 105) | public static Type canonicalize(Type type) { method getRawType (line 129) | public static Class getRawType(Type type) { method equal (line 167) | private static boolean equal(Object a, Object b) { method equals (line 172) | public static boolean equals(Type a, Type b) { method typeToString (line 227) | public static String typeToString(Type type) { method getGenericSupertype (line 236) | private static Type getGenericSupertype(Type context, Class rawType... method getSupertype (line 277) | private static Type getSupertype(Type context, Class contextRawType... method getArrayComponentType (line 299) | public static Type getArrayComponentType(Type array) { method getCollectionElementType (line 310) | public static Type getCollectionElementType(Type context, Class con... method getMapKeyAndValueTypes (line 323) | public static Type[] getMapKeyAndValueTypes(Type context, Class con... method resolve (line 342) | public static Type resolve(Type context, Class contextRawType, Type... method resolve (line 347) | private static Type resolve( method resolveTypeVariable (line 451) | private static Type resolveTypeVariable( method indexOf (line 469) | private static int indexOf(Object[] array, Object toFind) { method declaringClassOf (line 482) | private static Class declaringClassOf(TypeVariable typeVariable) { method checkNotPrimitive (line 487) | static void checkNotPrimitive(Type type) { method requiresOwnerType (line 500) | public static boolean requiresOwnerType(Type rawType) { class ParameterizedTypeImpl (line 513) | private static final class ParameterizedTypeImpl implements Parameteri... method ParameterizedTypeImpl (line 523) | ParameterizedTypeImpl(Type ownerType, Class rawType, Type... type... method getActualTypeArguments (line 540) | @Override method getRawType (line 545) | @Override method getOwnerType (line 550) | @Override method equals (line 555) | @Override method hashCodeOrZero (line 561) | private static int hashCodeOrZero(Object o) { method hashCode (line 565) | @Override method toString (line 570) | @Override class GenericArrayTypeImpl (line 591) | private static final class GenericArrayTypeImpl implements GenericArra... method GenericArrayTypeImpl (line 595) | GenericArrayTypeImpl(Type componentType) { method getGenericComponentType (line 600) | @Override method equals (line 605) | @Override method hashCode (line 610) | @Override method toString (line 615) | @Override class WildcardTypeImpl (line 629) | private static final class WildcardTypeImpl implements WildcardType, S... method WildcardTypeImpl (line 636) | WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) { method getUpperBounds (line 662) | @Override method getLowerBounds (line 667) | @Override method equals (line 672) | @Override method hashCode (line 677) | @Override method toString (line 683) | @Override FILE: gson/src/main/java/com/google/gson/internal/JavaVersion.java class JavaVersion (line 20) | public final class JavaVersion { method determineMajorJavaVersion (line 28) | private static int determineMajorJavaVersion() { method parseMajorJavaVersion (line 34) | static int parseMajorJavaVersion(String javaVersion) { method parseDotted (line 46) | private static int parseDotted(String javaVersion) { method extractBeginningInt (line 60) | private static int extractBeginningInt(String javaVersion) { method getMajorJavaVersion (line 82) | public static int getMajorJavaVersion() { method isJava9OrLater (line 92) | public static boolean isJava9OrLater() { method JavaVersion (line 96) | private JavaVersion() {} FILE: gson/src/main/java/com/google/gson/internal/JsonReaderInternalAccess.java class JsonReaderInternalAccess (line 23) | public abstract class JsonReaderInternalAccess { method promoteNameToValue (line 30) | public abstract void promoteNameToValue(JsonReader reader) throws IOEx... FILE: gson/src/main/java/com/google/gson/internal/LazilyParsedNumber.java class LazilyParsedNumber (line 29) | @SuppressWarnings("serial") // ignore warning about missing serialVersio... method LazilyParsedNumber (line 36) | public LazilyParsedNumber(String value) { method asBigDecimal (line 40) | private BigDecimal asBigDecimal() { method intValue (line 44) | @Override method longValue (line 57) | @Override method floatValue (line 66) | @Override method doubleValue (line 71) | @Override method toString (line 76) | @Override method writeReplace (line 85) | private Object writeReplace() throws ObjectStreamException { method readObject (line 89) | private void readObject(ObjectInputStream in) throws IOException { method hashCode (line 95) | @Override method equals (line 100) | @Override FILE: gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java class LinkedTreeMap (line 43) | @SuppressWarnings("serial") // ignore warning about missing serialVersio... method compare (line 48) | @Override method LinkedTreeMap (line 67) | @SuppressWarnings("unchecked") // unsafe! this assumes K is comparable method LinkedTreeMap (line 77) | @SuppressWarnings("unchecked") // unsafe! this assumes K is comparable method LinkedTreeMap (line 91) | @SuppressWarnings({"unchecked", "rawtypes"}) method size (line 98) | @Override method get (line 103) | @Override method containsKey (line 109) | @Override method put (line 114) | @CanIgnoreReturnValue method clear (line 129) | @Override method remove (line 140) | @Override method find (line 151) | Node find(K key, boolean create) { method findByObject (line 213) | @SuppressWarnings("unchecked") method findByEntry (line 230) | Node findByEntry(Entry entry) { method equal (line 236) | private static boolean equal(Object a, Object b) { method removeInternal (line 245) | void removeInternal(Node node, boolean unlink) { method removeInternalByKey (line 304) | Node removeInternalByKey(Object key) { method replaceInParent (line 312) | @SuppressWarnings("ReferenceEquality") method rebalance (line 338) | private void rebalance(Node unbalanced, boolean insert) { method rotateLeft (line 399) | private void rotateLeft(Node root) { method rotateRight (line 424) | private void rotateRight(Node root) { method entrySet (line 451) | @Override method keySet (line 460) | @Override class Node (line 469) | static final class Node implements Entry { method Node (line 481) | Node(boolean allowNullValue) { method Node (line 488) | Node(boolean allowNullValue, Node parent, K key, Node ne... method getKey (line 499) | @Override method getValue (line 504) | @Override method setValue (line 509) | @Override method equals (line 519) | @Override method hashCode (line 529) | @Override method toString (line 534) | @Override method first (line 540) | public Node first() { method last (line 551) | public Node last() { class LinkedTreeMapIterator (line 562) | private abstract class LinkedTreeMapIterator implements Iterator { method LinkedTreeMapIterator (line 567) | LinkedTreeMapIterator() {} method hasNext (line 569) | @Override method nextNode (line 575) | @SuppressWarnings("ReferenceEquality") method remove (line 589) | @Override class EntrySet (line 600) | class EntrySet extends AbstractSet> { method size (line 601) | @Override method iterator (line 606) | @Override method contains (line 616) | @Override method remove (line 621) | @Override method clear (line 635) | @Override class KeySet (line 641) | final class KeySet extends AbstractSet { method size (line 642) | @Override method iterator (line 647) | @Override method contains (line 657) | @Override method remove (line 662) | @Override method clear (line 667) | @Override method writeReplace (line 678) | private Object writeReplace() throws ObjectStreamException { method readObject (line 682) | private void readObject(ObjectInputStream in) throws IOException { FILE: gson/src/main/java/com/google/gson/internal/NonNullElementWrapperList.java class NonNullElementWrapperList (line 31) | public class NonNullElementWrapperList extends AbstractList implem... method NonNullElementWrapperList (line 35) | @SuppressWarnings("NonApiType") method get (line 40) | @Override method size (line 45) | @Override method nonNull (line 50) | private E nonNull(E element) { method set (line 57) | @Override method add (line 62) | @Override method remove (line 67) | @Override method clear (line 74) | @Override method remove (line 79) | @SuppressWarnings("UngroupedOverloads") // this is intentionally ungro... method removeAll (line 85) | @Override method retainAll (line 90) | @Override method contains (line 95) | @Override method indexOf (line 100) | @Override method lastIndexOf (line 105) | @Override method toArray (line 110) | @Override method toArray (line 115) | @Override method equals (line 120) | @Override method hashCode (line 125) | @Override FILE: gson/src/main/java/com/google/gson/internal/NumberLimits.java class NumberLimits (line 10) | public class NumberLimits { method NumberLimits (line 11) | private NumberLimits() {} method checkNumberStringLength (line 15) | private static void checkNumberStringLength(String s) { method parseBigDecimal (line 21) | public static BigDecimal parseBigDecimal(String s) throws NumberFormat... method parseBigInteger (line 32) | public static BigInteger parseBigInteger(String s) throws NumberFormat... FILE: gson/src/main/java/com/google/gson/internal/ObjectConstructor.java type ObjectConstructor (line 27) | public interface ObjectConstructor { method construct (line 30) | T construct(); FILE: gson/src/main/java/com/google/gson/internal/PreJava9DateFormatProvider.java class PreJava9DateFormatProvider (line 23) | public class PreJava9DateFormatProvider { method PreJava9DateFormatProvider (line 24) | private PreJava9DateFormatProvider() {} method getUsDateTimeFormat (line 30) | public static DateFormat getUsDateTimeFormat(int dateStyle, int timeSt... method getDatePartOfDateTimePattern (line 36) | private static String getDatePartOfDateTimePattern(int dateStyle) { method getTimePartOfDateTimePattern (line 51) | private static String getTimePartOfDateTimePattern(int timeStyle) { FILE: gson/src/main/java/com/google/gson/internal/Primitives.java class Primitives (line 27) | public final class Primitives { method Primitives (line 28) | private Primitives() {} method isPrimitive (line 31) | public static boolean isPrimitive(Type type) { method isWrapperType (line 41) | public static boolean isWrapperType(Type type) { method wrap (line 63) | @SuppressWarnings({"unchecked", "MissingBraces"}) method unwrap (line 87) | @SuppressWarnings({"unchecked", "MissingBraces"}) FILE: gson/src/main/java/com/google/gson/internal/ReflectionAccessFilterHelper.java class ReflectionAccessFilterHelper (line 26) | public class ReflectionAccessFilterHelper { method ReflectionAccessFilterHelper (line 27) | private ReflectionAccessFilterHelper() {} method isJavaType (line 33) | public static boolean isJavaType(Class c) { method isJavaType (line 37) | private static boolean isJavaType(String className) { method isAndroidType (line 41) | public static boolean isAndroidType(Class c) { method isAndroidType (line 45) | private static boolean isAndroidType(String className) { method isAnyPlatformType (line 51) | public static boolean isAnyPlatformType(Class c) { method getFilterResult (line 64) | public static FilterResult getFilterResult( method canAccess (line 76) | public static boolean canAccess(AccessibleObject accessibleObject, Obj... class AccessChecker (line 80) | private abstract static class AccessChecker { method canAccess (line 92) | @Override method canAccess (line 109) | @Override method canAccess (line 119) | abstract boolean canAccess(AccessibleObject accessibleObject, Object... FILE: gson/src/main/java/com/google/gson/internal/Streams.java class Streams (line 37) | public final class Streams { method Streams (line 38) | private Streams() { method parse (line 43) | public static JsonElement parse(JsonReader reader) throws JsonParseExc... method write (line 69) | public static void write(JsonElement element, JsonWriter writer) throw... method writerForAppendable (line 73) | public static Writer writerForAppendable(Appendable appendable) { class AppendableWriter (line 78) | private static final class AppendableWriter extends Writer { method AppendableWriter (line 82) | AppendableWriter(Appendable appendable) { method write (line 86) | @SuppressWarnings("UngroupedOverloads") // this is intentionally ung... method flush (line 93) | @Override method close (line 100) | @Override method write (line 110) | @Override method write (line 115) | @Override method append (line 122) | @Override method append (line 128) | @Override class CurrentWrite (line 135) | private static class CurrentWrite implements CharSequence { method setChars (line 139) | void setChars(char[] chars) { method length (line 144) | @Override method charAt (line 149) | @Override method subSequence (line 154) | @Override method toString (line 160) | @Override FILE: gson/src/main/java/com/google/gson/internal/TroubleshootingGuide.java class TroubleshootingGuide (line 3) | public class TroubleshootingGuide { method TroubleshootingGuide (line 4) | private TroubleshootingGuide() {} method createUrl (line 7) | public static String createUrl(String id) { FILE: gson/src/main/java/com/google/gson/internal/UnsafeAllocator.java class UnsafeAllocator (line 30) | public abstract class UnsafeAllocator { method newInstance (line 31) | public abstract T newInstance(Class c) throws Exception; method assertInstantiable (line 38) | private static void assertInstantiable(Class c) { method create (line 48) | private static UnsafeAllocator create() { FILE: gson/src/main/java/com/google/gson/internal/bind/ArrayTypeAdapter.java class ArrayTypeAdapter (line 34) | public final class ArrayTypeAdapter extends TypeAdapter { method create (line 37) | @Override method ArrayTypeAdapter (line 58) | public ArrayTypeAdapter( method read (line 65) | @Override method write (line 97) | @Override FILE: gson/src/main/java/com/google/gson/internal/bind/CollectionTypeAdapterFactory.java class CollectionTypeAdapterFactory (line 34) | public final class CollectionTypeAdapterFactory implements TypeAdapterFa... method CollectionTypeAdapterFactory (line 37) | public CollectionTypeAdapterFactory(ConstructorConstructor constructor... method create (line 41) | @Override class Adapter (line 64) | private static final class Adapter extends TypeAdapter extends TypeAd... method create (line 66) | @SuppressWarnings("unchecked") // we use a runtime check to make sure ... method toString (line 76) | @Override class DateType (line 82) | public abstract static class DateType { method deserialize (line 85) | @Override method DateType (line 93) | protected DateType(Class dateClass) { method deserialize (line 97) | protected abstract T deserialize(Date date); method createFactory (line 99) | private TypeAdapterFactory createFactory(DefaultDateTypeAdapter a... method createAdapterFactory (line 103) | public final TypeAdapterFactory createAdapterFactory(String datePatt... method createAdapterFactory (line 107) | public final TypeAdapterFactory createAdapterFactory(int dateStyle, ... method DefaultDateTypeAdapter (line 120) | private DefaultDateTypeAdapter(DateType dateType, String datePatter... method DefaultDateTypeAdapter (line 128) | private DefaultDateTypeAdapter(DateType dateType, int dateStyle, in... method write (line 139) | @Override method read (line 155) | @Override method deserializeToDate (line 165) | private Date deserializeToDate(JsonReader in) throws IOException { method toString (line 189) | @Override FILE: gson/src/main/java/com/google/gson/internal/bind/EnumTypeAdapter.java class EnumTypeAdapter (line 35) | class EnumTypeAdapter> extends TypeAdapter { method create (line 38) | @Override method calculateHashMapCapacity (line 56) | private static int calculateHashMapCapacity(int numMappings) { method EnumTypeAdapter (line 64) | private EnumTypeAdapter(Class classOfT) { method read (line 113) | @Override method write (line 125) | @Override FILE: gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java class JavaTimeTypeAdapters (line 43) | @IgnoreJRERequirement // Protected by a reflective check method get (line 46) | @Override method create (line 53) | @Override method integerValues (line 58) | @Override method create (line 67) | @Override method integerValues (line 72) | @Override method create (line 81) | @Override method integerValues (line 86) | @Override method create (line 96) | @Override method integerValues (line 105) | @Override method localDateTime (line 113) | private static TypeAdapter localDateTime(Gson gson) { method create (line 155) | @Override method integerValues (line 160) | @Override method offsetDateTime (line 166) | private static TypeAdapter offsetDateTime(Gson gson) { method offsetTime (line 207) | private static TypeAdapter offsetTime(Gson gson) { method create (line 250) | @Override method integerValues (line 255) | @Override method create (line 263) | @Override method integerValues (line 268) | @Override method create (line 276) | @Override method integerValues (line 281) | @Override method read (line 294) | @Override method write (line 324) | @Override method zonedDateTime (line 340) | private static TypeAdapter zonedDateTime(Gson gson) { method create (line 395) | @Override method requireNonNullField (line 442) | private static T requireNonNullField(T field, String fieldName, Js... FILE: gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java class JsonAdapterAnnotationTypeAdapterFactory (line 37) | public final class JsonAdapterAnnotationTypeAdapterFactory implements Ty... class DummyTypeAdapterFactory (line 38) | private static class DummyTypeAdapterFactory implements TypeAdapterFac... method create (line 39) | @Override method JsonAdapterAnnotationTypeAdapterFactory (line 64) | public JsonAdapterAnnotationTypeAdapterFactory(ConstructorConstructor ... method getAnnotation (line 70) | private static JsonAdapter getAnnotation(Class rawType) { method create (line 75) | @SuppressWarnings("unchecked") method createAdapter (line 88) | private static Object createAdapter( method putFactoryAndGetCurrent (line 99) | private TypeAdapterFactory putFactoryAndGetCurrent(Class rawType, T... method getTypeAdapter (line 105) | TypeAdapter getTypeAdapter( method isClassJsonAdapterFactory (line 168) | public boolean isClassJsonAdapterFactory(TypeToken type, TypeAdapte... FILE: gson/src/main/java/com/google/gson/internal/bind/JsonElementTypeAdapter.java class JsonElementTypeAdapter (line 35) | public class JsonElementTypeAdapter extends TypeAdapter { method JsonElementTypeAdapter (line 38) | private JsonElementTypeAdapter() {} method tryBeginNesting (line 44) | private JsonElement tryBeginNesting(JsonReader in, JsonToken peeked) t... method readTerminal (line 58) | private JsonElement readTerminal(JsonReader in, JsonToken peeked) thro... method read (line 76) | @Override method write (line 138) | @Override FILE: gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java class JsonTreeReader (line 39) | public final class JsonTreeReader extends JsonReader { method read (line 42) | @Override method close (line 47) | @Override method JsonTreeReader (line 76) | public JsonTreeReader(JsonElement element) { method beginArray (line 81) | @Override method endArray (line 89) | @Override method beginObject (line 99) | @Override method endObject (line 106) | @Override method hasNext (line 117) | @Override method peek (line 125) | @Override method peekStack (line 170) | private Object peekStack() { method popStack (line 174) | @CanIgnoreReturnValue method expect (line 181) | private void expect(JsonToken expected) throws IOException { method nextName (line 188) | private String nextName(boolean skipName) throws IOException { method nextName (line 198) | @Override method nextString (line 203) | @Override method nextBoolean (line 217) | @Override method nextNull (line 227) | @Override method nextDouble (line 236) | @Override method nextLong (line 254) | @Override method nextInt (line 269) | @Override method nextJsonElement (line 284) | JsonElement nextJsonElement() throws IOException { method close (line 297) | @Override method skipValue (line 303) | @Override method toString (line 329) | @Override method promoteNameToValue (line 334) | public void promoteNameToValue() throws IOException { method push (line 342) | private void push(Object newTop) { method getPath (line 352) | private String getPath(boolean usePreviousPath) { method getPath (line 378) | @Override method getPreviousPath (line 383) | @Override method locationString (line 388) | private String locationString() { FILE: gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java class JsonTreeWriter (line 33) | public final class JsonTreeWriter extends JsonWriter { method write (line 36) | @Override method flush (line 41) | @Override method close (line 46) | @Override method JsonTreeWriter (line 64) | public JsonTreeWriter() { method get (line 69) | public JsonElement get() { method peek (line 76) | private JsonElement peek() { method put (line 80) | private void put(JsonElement value) { method beginArray (line 99) | @CanIgnoreReturnValue method endArray (line 108) | @CanIgnoreReturnValue method beginObject (line 122) | @CanIgnoreReturnValue method endObject (line 131) | @CanIgnoreReturnValue method name (line 145) | @CanIgnoreReturnValue method value (line 160) | @CanIgnoreReturnValue method value (line 170) | @CanIgnoreReturnValue method value (line 177) | @CanIgnoreReturnValue method value (line 187) | @CanIgnoreReturnValue method value (line 197) | @CanIgnoreReturnValue method value (line 207) | @CanIgnoreReturnValue method value (line 214) | @CanIgnoreReturnValue method nullValue (line 232) | @CanIgnoreReturnValue method jsonValue (line 239) | @Override method flush (line 244) | @Override method close (line 247) | @Override FILE: gson/src/main/java/com/google/gson/internal/bind/MapTypeAdapterFactory.java class MapTypeAdapterFactory (line 115) | public final class MapTypeAdapterFactory implements TypeAdapterFactory { method MapTypeAdapterFactory (line 119) | public MapTypeAdapterFactory( method create (line 125) | @Override method getKeyAdapter (line 155) | private TypeAdapter getKeyAdapter(Gson context, Type keyType) { class Adapter (line 161) | private final class Adapter extends TypeAdapter> { method Adapter (line 166) | Adapter( method read (line 175) | @Override method write (line 214) | @Override method keyToString (line 262) | private String keyToString(JsonElement keyElement) { FILE: gson/src/main/java/com/google/gson/internal/bind/NumberTypeAdapter.java class NumberTypeAdapter (line 32) | public final class NumberTypeAdapter extends TypeAdapter { method NumberTypeAdapter (line 39) | private NumberTypeAdapter(ToNumberStrategy toNumberStrategy) { method newFactory (line 43) | private static TypeAdapterFactory newFactory(ToNumberStrategy toNumber... method getFactory (line 54) | public static TypeAdapterFactory getFactory(ToNumberStrategy toNumberS... method read (line 62) | @Override method write (line 78) | @Override FILE: gson/src/main/java/com/google/gson/internal/bind/ObjectTypeAdapter.java class ObjectTypeAdapter (line 40) | public final class ObjectTypeAdapter extends TypeAdapter { method ObjectTypeAdapter (line 47) | private ObjectTypeAdapter(Gson gson, ToNumberStrategy toNumberStrategy) { method newFactory (line 52) | private static TypeAdapterFactory newFactory(ToNumberStrategy toNumber... method getFactory (line 65) | public static TypeAdapterFactory getFactory(ToNumberStrategy toNumberS... method tryBeginNesting (line 77) | private Object tryBeginNesting(JsonReader in, JsonToken peeked) throws... method readTerminal (line 91) | private Object readTerminal(JsonReader in, JsonToken peeked) throws IO... method read (line 108) | @Override method write (line 169) | @Override FILE: gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java class ReflectiveTypeAdapterFactory (line 60) | public final class ReflectiveTypeAdapterFactory implements TypeAdapterFa... method ReflectiveTypeAdapterFactory (line 67) | public ReflectiveTypeAdapterFactory( method includeField (line 80) | private boolean includeField(Field f, boolean serialize) { method getFieldNames (line 85) | @SuppressWarnings("MixedMutabilityReturnType") method create (line 109) | @Override method checkAccessible (line 168) | private static void checkAccessi... method createBoundField (line 181) | private BoundField createBoundField( class FieldsData (line 288) | private static class FieldsData { method FieldsData (line 296) | FieldsData(Map deserializedFields, List extends TypeAdapter { method Adapter (line 477) | Adapter(FieldsData fieldsData) { method write (line 481) | @Override method read (line 499) | @Override method createAccumulator (line 530) | abstract A createAccumulator(); method readField (line 536) | abstract void readField(A accumulator, JsonReader in, BoundField field) method finalize (line 540) | abstract T finalize(A accumulator); class FieldReflectionAdapter (line 543) | private static final class FieldReflectionAdapter extends Adapter constructor, FieldsData ... method createAccumulator (line 551) | @Override method readField (line 556) | @Override method finalize (line 562) | @Override class RecordAdapter (line 568) | private static final class RecordAdapter extends Adapter raw, FieldsData fieldsData, boolean blockInac... method primitiveDefaults (line 605) | private static Map, Object> primitiveDefaults() { method createAccumulator (line 618) | @Override method readField (line 623) | @Override method finalize (line 642) | @Override FILE: gson/src/main/java/com/google/gson/internal/bind/SerializationDelegatingTypeAdapter.java class SerializationDelegatingTypeAdapter (line 22) | public abstract class SerializationDelegatingTypeAdapter extends Type... method getSerializationDelegate (line 27) | public abstract TypeAdapter getSerializationDelegate(); FILE: gson/src/main/java/com/google/gson/internal/bind/TreeTypeAdapter.java class TreeTypeAdapter (line 41) | public final class TreeTypeAdapter extends SerializationDelegatingTyp... method TreeTypeAdapter (line 62) | public TreeTypeAdapter( method TreeTypeAdapter (line 77) | public TreeTypeAdapter( method read (line 86) | @Override method write (line 98) | @Override method delegate (line 112) | private TypeAdapter delegate() { method getSerializationDelegate (line 126) | @Override method newFactory (line 132) | public static TypeAdapterFactory newFactory(TypeToken exactType, Ob... method newFactoryWithMatchRawType (line 137) | public static TypeAdapterFactory newFactoryWithMatchRawType( method newTypeHierarchyFactory (line 148) | public static TypeAdapterFactory newTypeHierarchyFactory( class SingleTypeFactory (line 153) | private static final class SingleTypeFactory implements TypeAdapterFac... method SingleTypeFactory (line 160) | SingleTypeFactory( method create (line 177) | @SuppressWarnings("unchecked") // guarded by typeToken.equals() call class GsonContextImpl (line 191) | private final class GsonContextImpl method serialize (line 193) | @Override method serialize (line 198) | @Override method deserialize (line 203) | @Override FILE: gson/src/main/java/com/google/gson/internal/bind/TypeAdapterRuntimeTypeWrapper.java class TypeAdapterRuntimeTypeWrapper (line 27) | final class TypeAdapterRuntimeTypeWrapper extends TypeAdapter { method TypeAdapterRuntimeTypeWrapper (line 32) | TypeAdapterRuntimeTypeWrapper(Gson context, TypeAdapter delegate, T... method read (line 38) | @Override method write (line 43) | @Override method isReflective (line 81) | private static boolean isReflective(TypeAdapter typeAdapter) { method getRuntimeTypeIfMoreSpecific (line 97) | private static Type getRuntimeTypeIfMoreSpecific(Type type, Object val... FILE: gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java class TypeAdapters (line 60) | public final class TypeAdapters { method TypeAdapters (line 61) | private TypeAdapters() { method write (line 68) | @Override method read (line 78) | @Override method read (line 91) | @Override method write (line 132) | @Override method read (line 147) | @Override method write (line 160) | @Override method read (line 171) | @Override method write (line 180) | @Override method read (line 191) | @Override method write (line 212) | @Override method read (line 226) | @Override method write (line 247) | @Override method read (line 262) | @Override method write (line 275) | @Override method read (line 289) | @Override method write (line 298) | @Override method atomicLongAdapter (line 306) | public static TypeAdapter atomicLongAdapter(TypeAdapter atomicLongArrayAdapter( method read (line 406) | @Override method write (line 419) | @Override method read (line 431) | @Override method write (line 440) | @Override class FloatAdapter (line 450) | private static class FloatAdapter extends TypeAdapter { method FloatAdapter (line 453) | FloatAdapter(boolean strict) { method read (line 457) | @Override method write (line 466) | @Override class DoubleAdapter (line 483) | private static class DoubleAdapter extends TypeAdapter { method DoubleAdapter (line 486) | DoubleAdapter(boolean strict) { method read (line 490) | @Override method write (line 499) | @Override method checkValidFloatingPoint (line 513) | private static void checkValidFloatingPoint(double value) { method read (line 530) | @Override method write (line 544) | @Override method read (line 555) | @Override method write (line 569) | @Override method read (line 577) | @Override method write (line 592) | @Override method read (line 603) | @Override method write (line 618) | @Override method read (line 632) | @Override method write (line 641) | @Override method read (line 654) | @Override method write (line 663) | @Override method read (line 674) | @Override method write (line 683) | @Override method read (line 694) | @Override method write (line 704) | @Override method read (line 714) | @Override method write (line 728) | @Override method read (line 738) | @Override method write (line 752) | @Override method read (line 763) | @Override method write (line 778) | @Override method read (line 788) | @Override method write (line 799) | @Override class IntegerFieldsTypeAdapter (line 811) | abstract static class IntegerFieldsTypeAdapter extends TypeAdapter<... method IntegerFieldsTypeAdapter (line 814) | IntegerFieldsTypeAdapter(String... fields) { method create (line 818) | abstract T create(long[] values); method integerValues (line 820) | abstract long[] integerValues(T t); method read (line 822) | @Override method write (line 843) | @Override method create (line 863) | @Override method integerValues (line 874) | @Override method toIntExact (line 888) | private static int toIntExact(long x) { method read (line 901) | @Override method write (line 930) | @Override type FactorySupplier (line 945) | interface FactorySupplier { method get (line 946) | TypeAdapterFactory get(); method javaTimeTypeAdapterFactory (line 949) | public static TypeAdapterFactory javaTimeTypeAdapterFactory() { method newFactory (line 961) | @SuppressWarnings("TypeParameterNaming") method newFactory (line 973) | @SuppressWarnings("TypeParameterNaming") method newFactory (line 989) | @SuppressWarnings("TypeParameterNaming") method newFactoryForMultipleTypes (line 1013) | @SuppressWarnings("TypeParameterNaming") method newTypeHierarchyFactory (line 1041) | public static TypeAdapterFactory newTypeHierarchyFactory( FILE: gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java class ISO8601Utils (line 38) | @SuppressWarnings("MemberName") // legacy class name method ISO8601Utils (line 40) | private ISO8601Utils() {} method format (line 68) | public static String format(Date date) { method format (line 79) | public static String format(Date date, boolean millis) { method format (line 91) | public static String format(Date date, boolean millis, TimeZone tz) { method parse (line 147) | public static Date parse(String date, ParsePosition pos) throws ParseE... method checkOffset (line 319) | private static boolean checkOffset(String value, int offset, char expe... method parseInt (line 332) | private static int parseInt(String value, int beginIndex, int endIndex) method padInt (line 366) | private static void padInt(StringBuilder buffer, int value, int length) { method indexOfNonDigit (line 377) | private static int indexOfNonDigit(String string, int offset) { FILE: gson/src/main/java/com/google/gson/internal/reflect/ReflectionHelper.java class ReflectionHelper (line 28) | public class ReflectionHelper { method ReflectionHelper (line 44) | private ReflectionHelper() {} method getInaccessibleTroubleshootingSuffix (line 46) | private static String getInaccessibleTroubleshootingSuffix(Exception e) { method makeAccessible (line 66) | public static void makeAccessible(AccessibleObject object) throws Json... method getAccessibleObjectDescription (line 89) | public static String getAccessibleObjectDescription( method fieldToString (line 116) | public static String fieldToString(Field field) { method constructorToString (line 124) | public static String constructorToString(Constructor constructor) { method appendExecutableParameters (line 133) | private static void appendExecutableParameters( method isStatic (line 151) | public static boolean isStatic(Class clazz) { method isAnonymousOrNonStaticLocal (line 156) | public static boolean isAnonymousOrNonStaticLocal(Class clazz) { method tryMakeAccessible (line 166) | public static String tryMakeAccessible(Constructor constructor) { method isRecord (line 182) | public static boolean isRecord(Class raw) { method getRecordComponentNames (line 186) | public static String[] getRecordComponentNames(Class raw) { method getAccessor (line 191) | public static Method getAccessor(Class raw, Field field) { method getCanonicalRecordConstructor (line 195) | public static Constructor getCanonicalRecordConstructor(Class clazz); method getRecordComponentNames (line 226) | abstract String[] getRecordComponentNames(Class clazz); method getCanonicalRecordConstructor (line 228) | abstract Constructor getCanonicalRecordConstructor(Class r... method getAccessor (line 230) | abstract Method getAccessor(Class raw, Field field); class RecordSupportedHelper (line 233) | private static class RecordSupportedHelper extends RecordHelper { method RecordSupportedHelper (line 239) | private RecordSupportedHelper() throws NoSuchMethodException, ClassN... method isRecord (line 247) | @Override method getRecordComponentNames (line 256) | @Override method getCanonicalRecordConstructor (line 270) | @Override method getAccessor (line 286) | @Override class RecordNotSupportedHelper (line 300) | private static class RecordNotSupportedHelper extends RecordHelper { method isRecord (line 302) | @Override method getRecordComponentNames (line 307) | @Override method getCanonicalRecordConstructor (line 313) | @Override method getAccessor (line 319) | @Override FILE: gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java class SqlDateTypeAdapter (line 39) | @SuppressWarnings("JavaUtilDate") method create (line 43) | @SuppressWarnings("unchecked") // we use a runtime check to make sure ... method SqlDateTypeAdapter (line 54) | private SqlDateTypeAdapter() {} method read (line 56) | @Override method write (line 77) | @Override FILE: gson/src/main/java/com/google/gson/internal/sql/SqlTimeTypeAdapter.java class SqlTimeTypeAdapter (line 40) | @SuppressWarnings("JavaUtilDate") method create (line 44) | @SuppressWarnings("unchecked") // we use a runtime check to make sure ... method SqlTimeTypeAdapter (line 55) | private SqlTimeTypeAdapter() {} method read (line 57) | @Override method write (line 78) | @Override FILE: gson/src/main/java/com/google/gson/internal/sql/SqlTimestampTypeAdapter.java class SqlTimestampTypeAdapter (line 29) | @SuppressWarnings("JavaUtilDate") method create (line 33) | @SuppressWarnings("unchecked") // we use a runtime check to make sure ... method SqlTimestampTypeAdapter (line 47) | private SqlTimestampTypeAdapter(TypeAdapter dateTypeAdapter) { method read (line 51) | @Override method write (line 57) | @Override FILE: gson/src/main/java/com/google/gson/internal/sql/SqlTypesSupport.java class SqlTypesSupport (line 38) | @SuppressWarnings("JavaUtilDate") method deserialize (line 65) | @Override method deserialize (line 72) | @Override method SqlTypesSupport (line 97) | private SqlTypesSupport() {} FILE: gson/src/main/java/com/google/gson/reflect/TypeToken.java class TypeToken (line 54) | public class TypeToken { method TypeToken (line 72) | @SuppressWarnings("unchecked") method TypeToken (line 80) | @SuppressWarnings("unchecked") method isCapturingTypeVariablesForbidden (line 87) | private static boolean isCapturingTypeVariablesForbidden() { method getTypeTokenTypeArgument (line 95) | private Type getTypeTokenTypeArgument() { method verifyNoTypeVariable (line 121) | private static void verifyNoTypeVariable(Type type) { method getRawType (line 161) | public final Class getRawType() { method getType (line 166) | public final Type getType() { method isAssignableFrom (line 175) | @Deprecated method isAssignableFrom (line 185) | @Deprecated method isAssignableFrom (line 213) | @Deprecated method isAssignableFrom (line 222) | private static boolean isAssignableFrom(Type from, GenericArrayType to) { method isAssignableFrom (line 244) | private static boolean isAssignableFrom( method typeEquals (line 297) | private static boolean typeEquals( method buildUnsupportedTypeException (line 312) | private static IllegalArgumentException buildUnsupportedTypeException( method matches (line 333) | private static boolean matches(Type from, Type to, Map t... method hashCode (line 339) | @Override method equals (line 344) | @Override method toString (line 349) | @Override method get (line 355) | public static TypeToken get(Type type) { method get (line 360) | public static TypeToken get(Class type) { method getParameterized (line 385) | public static TypeToken getParameterized(Type rawType, Type... type... method getArray (line 449) | public static TypeToken getArray(Type componentType) { FILE: gson/src/main/java/com/google/gson/stream/JsonReader.java class JsonReader (line 211) | public class JsonReader implements Closeable { method JsonReader (line 314) | public JsonReader(Reader in) { method setLenient (line 331) | @Deprecated method isLenient (line 344) | public final boolean isLenient() { method setStrictness (line 402) | public final void setStrictness(Strictness strictness) { method getStrictness (line 413) | public final Strictness getStrictness() { method setNestingLimit (line 435) | public final void setNestingLimit(int limit) { method getNestingLimit (line 448) | public final int getNestingLimit() { method beginArray (line 458) | public void beginArray() throws IOException { method endArray (line 478) | public void endArray() throws IOException { method beginObject (line 498) | public void beginObject() throws IOException { method endObject (line 517) | public void endObject() throws IOException { method hasNext (line 533) | public boolean hasNext() throws IOException { method peek (line 542) | public JsonToken peek() throws IOException { method doPeek (line 581) | @SuppressWarnings("fallthrough") method peekKeyword (line 732) | private int peekKeyword() throws IOException { method peekNumber (line 782) | private int peekNumber() throws IOException { method isLiteral (line 894) | @SuppressWarnings("fallthrough") method nextName (line 925) | public String nextName() throws IOException { method nextString (line 951) | public String nextString() throws IOException { method nextBoolean (line 984) | public boolean nextBoolean() throws IOException { method nextNull (line 1006) | public void nextNull() throws IOException { method nextDouble (line 1029) | public double nextDouble() throws IOException { method nextLong (line 1072) | public long nextLong() throws IOException { method nextQuotedValue (line 1125) | private String nextQuotedValue(char quote) throws IOException { method nextUnquotedValue (line 1182) | @SuppressWarnings("fallthrough") method skipQuotedValue (line 1241) | private void skipQuotedValue(char quote) throws IOException { method skipUnquotedValue (line 1268) | @SuppressWarnings("fallthrough") method nextInt (line 1310) | public int nextInt() throws IOException { method close (line 1367) | @Override method skipValue (line 1391) | public void skipValue() throws IOException { method push (line 1468) | private void push(int newTop) throws MalformedJsonException { method fillBuffer (line 1488) | private boolean fillBuffer(int minimum) throws IOException { method nextNonWhitespace (line 1522) | private int nextNonWhitespace(boolean throwOnEof) throws IOException { method checkLenient (line 1611) | private void checkLenient() throws MalformedJsonException { method skipToEndOfLine (line 1622) | private void skipToEndOfLine() throws IOException { method skipTo (line 1638) | private boolean skipTo(String toFind) throws IOException { method toString (line 1657) | @Override method locationString (line 1662) | String locationString() { method getPath (line 1668) | private String getPath(boolean usePreviousPath) { method getPath (line 1715) | public String getPath() { method getPreviousPath (line 1733) | public String getPreviousPath() { method readEscapeCharacter (line 1744) | @SuppressWarnings("fallthrough") method syntaxError (line 1815) | private MalformedJsonException syntaxError(String message) throws Malf... method unexpectedTokenError (line 1820) | private IllegalStateException unexpectedTokenError(String expected) th... method consumeNonExecutePrefix (line 1835) | private void consumeNonExecutePrefix() throws IOException { method validateAscii (line 1858) | private void validateAscii(String s) throws MalformedJsonException { method promoteNameToValue (line 1869) | @Override FILE: gson/src/main/java/com/google/gson/stream/JsonScope.java class JsonScope (line 25) | final class JsonScope { method JsonScope (line 26) | private JsonScope() {} FILE: gson/src/main/java/com/google/gson/stream/JsonToken.java type JsonToken (line 25) | public enum JsonToken { FILE: gson/src/main/java/com/google/gson/stream/JsonWriter.java class JsonWriter (line 162) | public class JsonWriter implements Closeable, Flushable { method JsonWriter (line 231) | public JsonWriter(Writer out) { method setIndent (line 248) | public final void setIndent(String indent) { method setFormattingStyle (line 266) | public final void setFormattingStyle(FormattingStyle formattingStyle) { method getFormattingStyle (line 292) | public final FormattingStyle getFormattingStyle() { method setLenient (line 309) | @Deprecated method isLenient (line 322) | public boolean isLenient() { method setStrictness (line 345) | public final void setStrictness(Strictness strictness) { method getStrictness (line 355) | public final Strictness getStrictness() { method setHtmlSafe (line 367) | public final void setHtmlSafe(boolean htmlSafe) { method isHtmlSafe (line 376) | public final boolean isHtmlSafe() { method setSerializeNulls (line 386) | public final void setSerializeNulls(boolean serializeNulls) { method getSerializeNulls (line 396) | public final boolean getSerializeNulls() { method beginArray (line 406) | @CanIgnoreReturnValue method endArray (line 417) | @CanIgnoreReturnValue method beginObject (line 428) | @CanIgnoreReturnValue method endObject (line 439) | @CanIgnoreReturnValue method openScope (line 445) | @CanIgnoreReturnValue method closeScope (line 454) | @CanIgnoreReturnValue method push (line 472) | private void push(int newTop) { method peek (line 480) | private int peek() { method replaceTop (line 488) | private void replaceTop(int topOfStack) { method name (line 498) | @CanIgnoreReturnValue method writeDeferredName (line 512) | private void writeDeferredName() throws IOException { method value (line 526) | @CanIgnoreReturnValue method value (line 542) | @CanIgnoreReturnValue method value (line 556) | @CanIgnoreReturnValue method value (line 577) | @CanIgnoreReturnValue method value (line 597) | @CanIgnoreReturnValue method value (line 613) | @CanIgnoreReturnValue method value (line 632) | @CanIgnoreReturnValue method nullValue (line 666) | @CanIgnoreReturnValue method jsonValue (line 691) | @CanIgnoreReturnValue method flush (line 705) | @Override method close (line 718) | @Override method alwaysCreatesValidJsonNumber (line 730) | private static boolean alwaysCreatesValidJsonNumber(Class c) { method assertIncludesField (line 39) | private void assertIncludesField(Field f) { method assertExcludesField (line 44) | private void assertExcludesField(Field f) { method testNeverSkipClasses (line 49) | @Test method testSkipNonAnnotatedFields (line 54) | @Test method testSkipExplicitlySkippedFields (line 60) | @Test method testNeverSkipExposedAnnotatedFields (line 66) | @Test method testNeverSkipExplicitlyExposedAnnotatedFields (line 72) | @Test method testDifferentSerializeAndDeserializeField (line 78) | @Test method createFieldAttributes (line 85) | private static Field createFieldAttributes(String fieldName) throws Ex... class MockObject (line 89) | @SuppressWarnings("unused") FILE: gson/src/test/java/com/google/gson/FieldAttributesTest.java class FieldAttributesTest (line 35) | public class FieldAttributesTest { method setUp (line 38) | @Before method testNullField (line 43) | @Test method testDeclaringClass (line 48) | @Test method testModifiers (line 53) | @Test method testName (line 65) | @Test method testDeclaredTypeAndClass (line 70) | @Test class Foo (line 77) | private static class Foo { FILE: gson/src/test/java/com/google/gson/FieldNamingPolicyTest.java class FieldNamingPolicyTest (line 30) | public class FieldNamingPolicyTest { method testSeparateCamelCase (line 31) | @Test method testUpperCaseFirstLetter (line 51) | @Test method testUpperCasingLocaleIndependent (line 75) | @Test method testLowerCasingLocaleIndependent (line 114) | @Test FILE: gson/src/test/java/com/google/gson/GenericArrayTypeTest.java class GenericArrayTypeTest (line 35) | public class GenericArrayTypeTest { method setUp (line 38) | @Before method testOurTypeFunctionality (line 44) | @Test method testNotEquals (line 54) | @Test FILE: gson/src/test/java/com/google/gson/GsonBuilderTest.java class GsonBuilderTest (line 39) | public class GsonBuilderTest { method write (line 42) | @Override method read (line 47) | @Override method testCreatingMoreThanOnce (line 53) | @Test method testModificationAfterCreate (line 72) | @Test method assertDefaultGson (line 110) | private static void assertDefaultGson(Gson gson) { method assertCustomGson (line 124) | private static void assertCustomGson(Gson gson) { class CustomClass1 (line 135) | static class CustomClass1 {} class CustomClass2 (line 137) | static class CustomClass2 {} class CustomClass3 (line 139) | static class CustomClass3 { method CustomClass3 (line 144) | public CustomClass3(String s) { method CustomClass3 (line 148) | public CustomClass3() { method testExcludeFieldsWithModifiers (line 153) | @Test class HasModifiers (line 160) | @SuppressWarnings("unused") method testTransientFieldExclusion (line 168) | @Test class HasTransients (line 174) | static class HasTransients { method testRegisterTypeAdapterForCoreType (line 178) | @Test method testDisableJdkUnsafe (line 188) | @Test class ClassWithoutNoArgsConstructor (line 204) | private static class ClassWithoutNoArgsConstructor { method ClassWithoutNoArgsConstructor (line 205) | @SuppressWarnings({"unused", "EffectivelyPrivate"}) method testSetVersionInvalid (line 209) | @Test method testDefaultStrictness (line 219) | @Test method testSetLenient (line 229) | @SuppressWarnings({"deprecation", "InlineMeInliner"}) // for GsonBuild... method testSetStrictness (line 241) | @Test method testRegisterTypeAdapterNotAdapterClass (line 251) | @Test method testRegisterTypeAdapterForObjectAndJsonElements (line 265) | @Test method testRegisterTypeAdapterForJsonElements (line 288) | @Test method testRegisterTypeHierarchyAdapterNotAdapterClass (line 297) | @Test method testRegisterTypeHierarchyAdapterJsonElements (line 311) | @Ignore( method testRegisterTypeHierarchyAdapterJsonElements_Allowed (line 337) | @Test method testSetDateFormatWithInvalidPattern (line 347) | @Test method testSetDateFormatWithValidPattern (line 358) | @Test method testSetDateFormatNullPattern (line 366) | @Test method testSetDateFormatEmptyPattern (line 385) | @Test method testSetDateFormatValidStyle (line 397) | @SuppressWarnings("deprecation") // for GsonBuilder.setDateFormat(int) method testSetDateFormatInvalidStyle (line 410) | @SuppressWarnings("deprecation") // for GsonBuilder.setDateFormat(int) FILE: gson/src/test/java/com/google/gson/GsonTest.java class GsonTest (line 41) | public final class GsonTest { method createGson (line 52) | private static Gson createGson() { method testStrictnessDefault (line 63) | @Test method testOverridesDefaultExcluder (line 68) | @Test method testClonedTypeAdapterFactoryListsAreIndependent (line 78) | @Test class TestTypeAdapter (line 88) | private static final class TestTypeAdapter extends TypeAdapter { method write (line 89) | @Override method read (line 94) | @Override method testFromJson_WrongResultType (line 100) | @Test method testGetAdapter_Null (line 155) | @Test method testGetAdapter_Concurrency (line 163) | @Test method testGetAdapter_FutureAdapterConcurrency (line 231) | @Test method testGetDelegateAdapter (line 333) | @Test method testNewJsonWriter_Default (line 419) | @Test method testNewJsonWriter_Custom (line 438) | @SuppressWarnings({"deprecation", "InlineMeInliner"}) // for GsonBuild... method testNewJsonReader_Default (line 465) | @Test method testNewJsonReader_Custom (line 473) | @SuppressWarnings({"deprecation", "InlineMeInliner"}) // for GsonBuild... method testDefaultGsonNewBuilderModification (line 487) | @Test method assertDefaultGson (line 524) | private static void assertDefaultGson(Gson gson) { method testNewBuilderModification (line 542) | @Test method assertCustomGson (line 610) | private static void assertCustomGson(Gson gson) { class CustomClass1 (line 621) | private static class CustomClass1 {} class CustomClass2 (line 623) | private static class CustomClass2 {} class CustomClass3 (line 625) | private static class CustomClass3 { method CustomClass3 (line 630) | @SuppressWarnings("EffectivelyPrivate") method CustomClass3 (line 635) | @SuppressWarnings({"unused", "EffectivelyPrivate"}) // called by Gson FILE: gson/src/test/java/com/google/gson/GsonTypeAdapterTest.java class GsonTypeAdapterTest (line 35) | public class GsonTypeAdapterTest { method setUp (line 38) | @Before method testDefaultTypeAdapterThrowsParseException (line 47) | @Test method testTypeAdapterThrowsException (line 52) | @Test method testTypeAdapterProperlyConvertsTypes (line 67) | @Test method testTypeAdapterDoesNotAffectNonAdaptedTypes (line 78) | @Test class ExceptionTypeAdapter (line 88) | private static class ExceptionTypeAdapter method serialize (line 94) | @Override method deserialize (line 99) | @Override class AtomicIntegerTypeAdapter (line 107) | private static class AtomicIntegerTypeAdapter method serialize (line 109) | @Override method deserialize (line 115) | @Override class Abstract (line 124) | abstract static class Abstract { class Concrete (line 128) | static class Concrete extends Abstract { method testDeserializerForAbstractClass (line 133) | @Test method assertSerialized (line 148) | private static void assertSerialized( FILE: gson/src/test/java/com/google/gson/InnerClassExclusionStrategyTest.java class InnerClassExclusionStrategyTest (line 30) | public class InnerClassExclusionStrategyTest { method assertIncludesClass (line 35) | private void assertIncludesClass(Class c) { method assertExcludesClass (line 40) | private void assertExcludesClass(Class c) { method assertIncludesField (line 45) | private void assertIncludesField(Field f) { method assertExcludesField (line 50) | private void assertExcludesField(Field f) { method testExcludeInnerClassObject (line 55) | @Test method testExcludeInnerClassField (line 61) | @Test method testIncludeStaticNestedClassObject (line 67) | @Test method testIncludeStaticNestedClassField (line 73) | @Test class InnerClass (line 79) | @SuppressWarnings("ClassCanBeStatic") class StaticNestedClass (line 82) | static class StaticNestedClass {} FILE: gson/src/test/java/com/google/gson/JavaSerializationTest.java class JavaSerializationTest (line 37) | public final class JavaSerializationTest { method testMapIsSerializable (line 40) | @Test method testListIsSerializable (line 50) | @Test method testNumberIsSerializable (line 58) | @Test method serializedCopy (line 68) | @SuppressWarnings("unchecked") // Serialization promises to return the... FILE: gson/src/test/java/com/google/gson/JsonArrayAsListSuiteTest.java class JsonArrayAsListSuiteTest (line 19) | @RunWith(AllTests.class) class ListGenerator (line 21) | private static class ListGenerator implements TestListGenerator List spliteratorToList(Spliterator spliterator) { method testSpliterator (line 212) | @Test method testSort (line 229) | @Test method testReplaceAll (line 249) | @Test method testToArray (line 269) | @Test method testEqualsHashCode (line 290) | @Test method testViewUpdates (line 302) | @Test FILE: gson/src/test/java/com/google/gson/JsonArrayTest.java class JsonArrayTest (line 32) | public final class JsonArrayTest { method testEqualsOnEmptyArray (line 34) | @Test method testEqualsNonEmptyArray (line 39) | @Test method testRemove (line 62) | @Test method testSet (line 78) | @Test method testDeepCopy (line 101) | @Test method testIsEmpty (line 117) | @Test method testFailedGetArrayValues (line 130) | @Test method testGetAs_WrongArraySize (line 169) | @Test method testStringPrimitiveAddition (line 181) | @Test method testIntegerPrimitiveAddition (line 195) | @Test method testDoublePrimitiveAddition (line 219) | @Test method testBooleanPrimitiveAddition (line 242) | @Test method testCharPrimitiveAddition (line 256) | @Test method testMixedPrimitiveAddition (line 272) | @Test method testNullPrimitiveAddition (line 294) | @Test method testNullJsonElementAddition (line 315) | @Test method testSameAddition (line 322) | @Test method testToString (line 341) | @Test FILE: gson/src/test/java/com/google/gson/JsonNullTest.java class JsonNullTest (line 29) | public final class JsonNullTest { method testEqualsAndHashcode (line 31) | @SuppressWarnings("deprecation") method testDeepCopy (line 39) | @Test method testToString (line 47) | @Test FILE: gson/src/test/java/com/google/gson/JsonObjectAsMapSuiteTest.java class JsonObjectAsMapSuiteTest (line 21) | @RunWith(AllTests.class) class MapGenerator (line 23) | private static class MapGenerator implements TestMapGenerator { method MyParameterizedType (line 40) | public MyParameterizedType(T value) { method getValue (line 44) | public T getValue() { method getExpectedJson (line 48) | public String getExpectedJson() { method getExpectedJson (line 53) | private static String getExpectedJson(Object obj) { method hashCode (line 71) | @Override method equals (line 76) | @Override class MyParameterizedTypeInstanceCreator (line 89) | public static class MyParameterizedTypeInstanceCreator method MyParameterizedTypeInstanceCreator (line 98) | public MyParameterizedTypeInstanceCreator(T instanceOfT) { method createInstance (line 102) | @Override class MyParameterizedTypeAdapter (line 108) | public static final class MyParameterizedTypeAdapter method getExpectedJson (line 110) | @SuppressWarnings("unchecked") method serialize (line 127) | @Override method deserialize (line 136) | @SuppressWarnings("unchecked") FILE: gson/src/test/java/com/google/gson/ParameterizedTypeTest.java class ParameterizedTypeTest (line 35) | public class ParameterizedTypeTest { method setUp (line 38) | @Before method testOurTypeFunctionality (line 43) | @Test method testNotEquals (line 53) | @Test FILE: gson/src/test/java/com/google/gson/PrimitiveTypeAdapter.java class PrimitiveTypeAdapter (line 30) | final class PrimitiveTypeAdapter { method adaptType (line 32) | @SuppressWarnings("unchecked") FILE: gson/src/test/java/com/google/gson/SubsetTest.java class SubsetTest (line 9) | public final class SubsetTest { method read (line 10) | @Test method write (line 20) | @Test FILE: gson/src/test/java/com/google/gson/ToNumberPolicyTest.java class ToNumberPolicyTest (line 30) | public class ToNumberPolicyTest { method testDouble (line 31) | @Test method testLazilyParsedNumber (line 50) | @Test method testLongOrDouble (line 59) | @Test method testBigDecimal (line 113) | @Test method testNullsAreNeverExpected (line 127) | @Test method fromString (line 170) | private static JsonReader fromString(String json) { method fromStringLenient (line 174) | private static JsonReader fromStringLenient(String json) { FILE: gson/src/test/java/com/google/gson/TypeAdapterTest.java class TypeAdapterTest (line 28) | public class TypeAdapterTest { method testNullSafe (line 29) | @Test method testNullSafe_ReturningSameInstanceOnceNullSafe (line 37) | @Test method testNullSafe_ToString (line 46) | @Test method write (line 59) | @Override method read (line 64) | @Override method toString (line 69) | @Override method testToJson_ThrowingIOException (line 79) | @Test method write (line 104) | @Override method read (line 109) | @Override method testFromJson_Reader_TrailingData (line 117) | @Test method testFromJson_String_TrailingData (line 124) | @Test FILE: gson/src/test/java/com/google/gson/VersionExclusionStrategyTest.java class VersionExclusionStrategyTest (line 33) | public class VersionExclusionStrategyTest { method assertIncludesClass (line 36) | private static void assertIncludesClass(Excluder excluder, Class c) { method assertExcludesClass (line 41) | private static void assertExcludesClass(Excluder excluder, Class c) { method assertIncludesField (line 46) | private static void assertIncludesField(Excluder excluder, Field f) { method assertExcludesField (line 51) | private static void assertExcludesField(Excluder excluder, Field f) { method testSameVersion (line 56) | @Test method testNewerVersion (line 70) | @Test method testOlderVersion (line 83) | @Test class MockClassSince (line 96) | @Since(VERSION) class MockClassUntil (line 104) | @Until(VERSION) class MockClassBoth (line 112) | @Since(VERSION) FILE: gson/src/test/java/com/google/gson/common/MoreAsserts.java class MoreAsserts (line 32) | public class MoreAsserts { method MoreAsserts (line 33) | private MoreAsserts() {} method assertContains (line 41) | public static void assertContains(Collection collection, T valu... method assertEqualsAndHashCode (line 50) | public static void assertEqualsAndHashCode(Object a, Object b) { method isProtectedOrPublic (line 58) | private static boolean isProtectedOrPublic(Method method) { method getMethodSignature (line 63) | private static String getMethodSignature(Method method) { method assertOverridesMethods (line 81) | public static void assertOverridesMethods( FILE: gson/src/test/java/com/google/gson/common/TestTypes.java class TestTypes (line 38) | public class TestTypes { method TestTypes (line 39) | private TestTypes() {} class Base (line 41) | public static class Base { class Sub (line 49) | public static class Sub extends Base { class ClassWithBaseField (line 55) | public static class ClassWithBaseField { method ClassWithBaseField (line 59) | public ClassWithBaseField(Base base) { class ClassWithBaseArrayField (line 64) | public static class ClassWithBaseArrayField { method ClassWithBaseArrayField (line 68) | public ClassWithBaseArrayField(Base[] base) { class ClassWithBaseCollectionField (line 73) | public static class ClassWithBaseCollectionField { method ClassWithBaseCollectionField (line 77) | public ClassWithBaseCollectionField(Collection base) { class BaseSerializer (line 82) | public static class BaseSerializer implements JsonSerializer { method serialize (line 85) | @Override class SubSerializer (line 93) | public static class SubSerializer implements JsonSerializer { method serialize (line 96) | @Override class StringWrapper (line 104) | public static class StringWrapper { method StringWrapper (line 107) | public StringWrapper(String value) { class BagOfPrimitives (line 112) | public static class BagOfPrimitives { method BagOfPrimitives (line 119) | public BagOfPrimitives() { method BagOfPrimitives (line 123) | public BagOfPrimitives(long longValue, int intValue, boolean boolean... method getIntValue (line 130) | public int getIntValue() { method getExpectedJson (line 134) | public String getExpectedJson() { method hashCode (line 145) | @Override method equals (line 156) | @Override method toString (line 171) | @Override class BagOfPrimitiveWrappers (line 179) | public static class BagOfPrimitiveWrappers { method BagOfPrimitiveWrappers (line 184) | public BagOfPrimitiveWrappers(Long longValue, Integer intValue, Bool... method getExpectedJson (line 190) | public String getExpectedJson() { class PrimitiveArray (line 201) | public static class PrimitiveArray { method PrimitiveArray (line 204) | public PrimitiveArray() { method PrimitiveArray (line 208) | public PrimitiveArray(long[] longArray) { method getExpectedJson (line 212) | public String getExpectedJson() { class ClassWithNoFields (line 232) | @SuppressWarnings({"overrides", "EqualsHashCode"}) method equals (line 235) | @Override class Nested (line 241) | public static class Nested { method Nested (line 245) | public Nested() { method Nested (line 249) | public Nested(BagOfPrimitives primitive1, BagOfPrimitives primitive2) { method getExpectedJson (line 254) | public String getExpectedJson() { method appendFields (line 262) | public void appendFields(StringBuilder sb) { class ClassWithTransientFields (line 275) | public static class ClassWithTransientFields { method ClassWithTransientFields (line 280) | public ClassWithTransientFields() { method ClassWithTransientFields (line 284) | public ClassWithTransientFields(long value) { method getExpectedJson (line 289) | public String getExpectedJson() { class ClassWithCustomTypeConverter (line 298) | public static class ClassWithCustomTypeConverter { method ClassWithCustomTypeConverter (line 302) | public ClassWithCustomTypeConverter() { method ClassWithCustomTypeConverter (line 306) | public ClassWithCustomTypeConverter(int value) { method ClassWithCustomTypeConverter (line 310) | public ClassWithCustomTypeConverter(BagOfPrimitives bag, int value) { method getBag (line 315) | public BagOfPrimitives getBag() { method getExpectedJson (line 319) | public String getExpectedJson() { method getValue (line 323) | public int getValue() { class ArrayOfObjects (line 328) | public static class ArrayOfObjects { method ArrayOfObjects (line 331) | public ArrayOfObjects() { method getExpectedJson (line 338) | public String getExpectedJson() { class ClassOverridingEquals (line 354) | public static class ClassOverridingEquals { method getExpectedJson (line 357) | public String getExpectedJson() { method equals (line 364) | @Override method hashCode (line 369) | @Override class ClassWithArray (line 375) | public static class ClassWithArray { method ClassWithArray (line 378) | public ClassWithArray() { method ClassWithArray (line 382) | public ClassWithArray(Object[] array) { class ClassWithObjects (line 387) | public static class ClassWithObjects { method ClassWithObjects (line 390) | public ClassWithObjects() { method ClassWithObjects (line 394) | public ClassWithObjects(BagOfPrimitives bag) { class ClassWithSerializedNameFields (line 399) | public static class ClassWithSerializedNameFields { method ClassWithSerializedNameFields (line 406) | public ClassWithSerializedNameFields() { method ClassWithSerializedNameFields (line 410) | public ClassWithSerializedNameFields(int f, int g) { method getExpectedJson (line 415) | public String getExpectedJson() { class CrazyLongTypeAdapter (line 420) | public static class CrazyLongTypeAdapter implements JsonSerializer extends Abs... method CollectionWithoutNoArgsConstructor (line 181) | CollectionWithoutNoArgsConstructor(int unused) {} method add (line 183) | @Override method iterator (line 188) | @Override method size (line 193) | @Override method testCollectionWithoutNoArgsConstructor (line 204) | @Test method testNullsInListSerialization (line 231) | @Test method testNullsInListDeserialization (line 243) | @Test method testCollectionOfObjectSerialization (line 257) | @Test method testCollectionOfObjectWithNullSerialization (line 268) | @Test method testCollectionOfStringsSerialization (line 280) | @Test method testCollectionOfBagOfPrimitivesSerialization (line 288) | @Test method testCollectionOfStringsDeserialization (line 304) | @Test method testRawCollectionOfIntegersSerialization (line 313) | @Test method testObjectCollectionSerialization (line 319) | @Test method testRawCollectionDeserializationNotAllowed (line 327) | @Test method testRawCollectionOfBagOfPrimitivesNotAllowed (line 341) | @Test method testWildcardPrimitiveCollectionSerilaization (line 355) | @Test method testWildcardPrimitiveCollectionDeserilaization (line 366) | @Test method testWildcardCollectionField (line 376) | @Test method testFieldIsArrayList (line 396) | @Test method testUserCollectionTypeAdapter (line 407) | @Test class HasArrayListField (line 422) | static class HasArrayListField { method toIntArray (line 426) | private static int[] toIntArray(Collection collection) { class ObjectWithWildcardCollection (line 440) | private static class ObjectWithWildcardCollection { method ObjectWithWildcardCollection (line 443) | ObjectWithWildcardCollection(Collection c... method getCollection (line 447) | Collection getCollection() { class Entry (line 452) | private static class Entry { method Entry (line 455) | Entry(int value) { method testSetSerialization (line 460) | @Test method testSetDeserialization (line 470) | @Test class BigClass (line 481) | private static class BigClass { class SmallClass (line 485) | private static class SmallClass { method testIssue1107 (line 489) | @Test FILE: gson/src/test/java/com/google/gson/functional/ConcurrencyTest.java class ConcurrencyTest (line 34) | public class ConcurrencyTest { method setUp (line 37) | @Before method testSingleThreadSerialization (line 46) | @Test method testSingleThreadDeserialization (line 58) | @Test method testMultiThreadSerialization (line 72) | @Test method testMultiThreadDeserialization (line 107) | @Test class MyObject (line 137) | @SuppressWarnings("unused") method MyObject (line 143) | MyObject() { method MyObject (line 147) | MyObject(String a, String b, int i) { FILE: gson/src/test/java/com/google/gson/functional/CustomDeserializerTest.java class CustomDeserializerTest (line 40) | public class CustomDeserializerTest { method setUp (line 46) | @Before method testDefaultConstructorNotCalledOnObject (line 54) | @Test method testDefaultConstructorNotCalledOnField (line 63) | @Test class DataHolder (line 72) | private static class DataHolder { method DataHolder (line 76) | @SuppressWarnings("unused") method DataHolder (line 81) | DataHolder(String data) { method getData (line 85) | String getData() { class DataHolderWrapper (line 90) | private static class DataHolderWrapper { method DataHolderWrapper (line 94) | @SuppressWarnings("unused") method DataHolderWrapper (line 99) | DataHolderWrapper(DataHolder data) { method getWrappedData (line 103) | DataHolder getWrappedData() { class DataHolderDeserializer (line 108) | private static class DataHolderDeserializer implements JsonDeserialize... method deserialize (line 109) | @Override method testJsonTypeFieldBasedDeserialization (line 119) | @Test class MyBase (line 137) | private static class MyBase { type SubTypes (line 141) | @SuppressWarnings("ImmutableEnumChecker") method SubTypes (line 147) | private SubTypes(Type subClass) { method getSubclass (line 151) | Type getSubclass() { class SubType1 (line 156) | private static class SubType1 extends MyBase { class SubType2 (line 160) | private static class SubType2 extends MyBase { method testCustomDeserializerReturnsNullForTopLevelObject (line 165) | @Test method testCustomDeserializerReturnsNull (line 177) | @Test method testCustomDeserializerReturnsNullForArrayElements (line 189) | @Test method testCustomDeserializerReturnsNullForArrayElementsForArrayField (line 202) | @Test class ClassWithBaseArray (line 215) | private static final class ClassWithBaseArray { FILE: gson/src/test/java/com/google/gson/functional/CustomSerializerTest.java class CustomSerializerTest (line 41) | public class CustomSerializerTest { method testBaseClassSerializerInvokedForBaseClassFields (line 43) | @Test method testSubClassSerializerInvokedForBaseClassFieldsHoldingSubClassInstances (line 56) | @Test method testSubClassSerializerInvokedForBaseClassFieldsHoldingArrayOfSubClassInstances (line 69) | @Test method testBaseClassSerializerInvokedForBaseClassFieldsHoldingSubClassInstances (line 85) | @Test method testSerializerReturnsNull (line 94) | @Test FILE: gson/src/test/java/com/google/gson/functional/CustomTypeAdaptersTest.java class CustomTypeAdaptersTest (line 52) | public class CustomTypeAdaptersTest { method setUp (line 55) | @Before method testCustomSerializers (line 60) | @Test method testCustomDeserializers (line 78) | @Test method disable_testCustomSerializersOfSelf (line 97) | @Test method disable_testCustomDeserializersOfSelf (line 109) | @Test method testCustomNestedSerializers (line 122) | @Test method testCustomNestedDeserializers (line 134) | @Test method testCustomTypeAdapterDoesNotAppliesToSubClasses (line 151) | @Test method testCustomTypeAdapterAppliesToSubClassesSerializedAsBaseClass (line 172) | @Test class Base (line 194) | private static class Base { class Derived (line 198) | private static class Derived extends Base { method createGsonObjectWithFooTypeAdapter (line 203) | private Gson createGsonObjectWithFooTypeAdapter() { class Foo (line 207) | public static class Foo { method Foo (line 211) | public Foo() { method Foo (line 215) | public Foo(int key, long value) { class FooTypeAdapter (line 221) | public static final class FooTypeAdapter implements JsonSerializer c) { method testNullSerializationAndDeserialization (line 233) | public static void testNullSerializationAndDeserialization(Gson gson, ... method testUuidSerialization (line 238) | @Test method testUuidDeserialization (line 245) | @Test method testLocaleSerializationWithLanguage (line 253) | @Test method testLocaleDeserializationWithLanguage (line 259) | @Test method testLocaleSerializationWithLanguageCountry (line 266) | @Test method testLocaleDeserializationWithLanguageCountry (line 272) | @Test method testLocaleSerializationWithLanguageCountryVariant (line 279) | @Test method testLocaleDeserializationWithLanguageCountryVariant (line 286) | @Test method testBigDecimalFieldSerialization (line 295) | @Test method testBigDecimalFieldDeserialization (line 303) | @Test method testBadValueForBigDecimalDeserialization (line 311) | @Test method testBigIntegerFieldSerialization (line 319) | @Test method testBigIntegerFieldDeserialization (line 326) | @Test method testOverrideBigIntegerTypeAdapter (line 334) | @Test method testOverrideBigDecimalTypeAdapter (line 344) | @Test method testSetSerialization (line 354) | @Test method testBitSetSerialization (line 366) | @Test method testBitSetDeserialization (line 377) | @Test method testDefaultDateSerialization (line 410) | @Test method testDefaultDateDeserialization (line 417) | @Test method assertEqualsDate (line 427) | @SuppressWarnings("deprecation") method assertEqualsTime (line 434) | @SuppressWarnings("deprecation") method testDefaultDateSerializationUsingBuilder (line 441) | @Test method testDefaultDateDeserializationUsingBuilder (line 449) | @Test method testDefaultCalendarSerialization (line 458) | @Test method testDefaultCalendarDeserialization (line 470) | @Test method testDefaultGregorianCalendarSerialization (line 483) | @Test method testDefaultGregorianCalendarDeserialization (line 497) | @Test method testDateSerializationWithStyle (line 529) | @Test method testDateSerializationWithDateStyle (line 559) | @SuppressWarnings("deprecation") // for GsonBuilder.setDateFormat(int) method testDateStyleOverwritesPattern (line 585) | @Test method testDateSerializationWithPattern (line 601) | @SuppressWarnings("deprecation") // for GsonBuilder.setDateFormat(int) method testDateDeserializationWithPattern (line 612) | @SuppressWarnings("deprecation") method testDateSerializationWithPatternNotOverridenByTypeAdapter (line 626) | @Test method testDateSerializationInCollection (line 643) | @Test method testJsonPrimitiveSerialization (line 663) | @Test method testJsonPrimitiveDeserialization (line 671) | @Test method testJsonNullSerialization (line 683) | @Test method testNullJsonElementSerialization (line 689) | @Test method testJsonArraySerialization (line 695) | @Test method testJsonArrayDeserialization (line 704) | @Test method testJsonObjectSerialization (line 716) | @Test method testJsonObjectDeserialization (line 724) | @Test method testJsonNullDeserialization (line 738) | @Test method testJsonElementTypeMismatch (line 744) | @Test class ClassWithBigDecimal (line 755) | private static class ClassWithBigDecimal { method ClassWithBigDecimal (line 758) | ClassWithBigDecimal(String value) { method getExpectedJson (line 762) | String getExpectedJson() { class ClassWithBigInteger (line 767) | private static class ClassWithBigInteger { method ClassWithBigInteger (line 770) | ClassWithBigInteger(String value) { method getExpectedJson (line 774) | String getExpectedJson() { method testPropertiesSerialization (line 779) | @Test method testPropertiesDeserialization (line 788) | @Test method testTreeSetSerialization (line 795) | @Test method testTreeSetDeserialization (line 803) | @Test method testStringBuilderSerialization (line 811) | @SuppressWarnings("UnnecessaryStringBuilder") // TODO: b/287969247 - r... method testStringBuilderDeserialization (line 819) | @Test method testStringBufferSerialization (line 825) | @Test method testStringBufferDeserialization (line 833) | @Test method testJavaTimeDuration (line 839) | @Test method testJavaTimeDurationWithUnknownFields (line 846) | @Test method testJavaTimeInstant (line 853) | @Test method testJavaTimeLocalDate (line 860) | @Test method testJavaTimeLocalTime (line 867) | @Test method testJavaTimeLocalDateTime (line 874) | @Test method testJavaTimeMonthDay (line 883) | @Test method testJavaTimeOffsetDateTime (line 890) | @Test method testJavaTimeOffsetTime (line 902) | @Test method testJavaTimePeriod (line 911) | @Test method testJavaTimeYear (line 918) | @Test method testJavaTimeYearMonth (line 925) | @Test method testJavaTimeZoneOffset (line 932) | @Test method testJavaTimeZoneRegion (line 939) | @Test method testJavaTimeZonedDateTimeWithZoneOffset (line 946) | @Test method testJavaTimeZonedDateTimeWithZoneId (line 959) | @Test method testJavaTimeZonedDateTimeWithZoneIdThatHasAdapter (line 977) | @Test method roundTrip (line 1024) | private void roundTrip(Object value, String expectedJson) { method roundTrip (line 1028) | private void roundTrip(Object value, Class valueClass, String expec... method roundTrip (line 1035) | private void roundTrip(Gson customGson, Object value, Class valueCl... method checkReflectiveTypeAdapterFactory (line 1044) | private void checkReflectiveTypeAdapterFactory(Object value, String ex... class MyClassTypeAdapter (line 1065) | private static class MyClassTypeAdapter extends TypeAdapter> { method write (line 1066) | @Override method read (line 1071) | @Override class NumberAsStringAdapter (line 1082) | static class NumberAsStringAdapter extends TypeAdapter { method NumberAsStringAdapter (line 1085) | NumberAsStringAdapter(Class type) throws Exception { method write (line 1089) | @Override method read (line 1094) | @Override FILE: gson/src/test/java/com/google/gson/functional/DelegateTypeAdapterTest.java class DelegateTypeAdapterTest (line 39) | public class DelegateTypeAdapterTest { method setUp (line 44) | @Before method testDelegateInvoked (line 50) | @Test method testDelegateInvokedOnStrings (line 64) | @Test class StatsTypeAdapterFactory (line 74) | private static class StatsTypeAdapterFactory implements TypeAdapterFac... method create (line 78) | @Override FILE: gson/src/test/java/com/google/gson/functional/EnumTest.java class EnumTest (line 50) | public class EnumTest { method setUp (line 54) | @Before method testTopLevelEnumSerialization (line 59) | @Test method testTopLevelEnumDeserialization (line 65) | @Test method testCollectionOfEnumsSerialization (line 71) | @Test method testCollectionOfEnumsDeserialization (line 84) | @Test method testClassWithEnumFieldSerialization (line 93) | @Test method testClassWithEnumFieldDeserialization (line 99) | @Test type MyEnum (line 107) | private static enum MyEnum { class ClassWithEnumFields (line 112) | private static class ClassWithEnumFields { method getExpectedJson (line 116) | String getExpectedJson() { method testEnumSubclass (line 122) | @Test method testEnumSubclassWithRegisteredTypeAdapter (line 139) | @Test method testEnumSubclassAsParameterizedType (line 156) | @Test method testEnumCaseMapping (line 171) | @Test method testEnumSet (line 177) | @Test method testEnumMap (line 189) | @Test type Roshambo (line 202) | private enum Roshambo { method defeats (line 204) | @Override method defeats (line 210) | @Override method defeats (line 216) | @Override method defeats (line 222) | @SuppressWarnings("unused") class MyEnumTypeAdapter (line 226) | private static class MyEnumTypeAdapter method serialize (line 228) | @Override method deserialize (line 233) | @Override type Gender (line 240) | private enum Gender { method testEnumClassWithFields (line 248) | @Test type Color (line 255) | private enum Color { method Color (line 262) | private Color(String value, int index) { method testEnumToStringRead (line 268) | @Test type CustomToString (line 278) | private enum CustomToString { method toString (line 281) | @Override method testEnumToStringReadInterchanged (line 288) | @Test type InterchangedToString (line 296) | private enum InterchangedToString { method InterchangedToString (line 302) | InterchangedToString(String toString) { method toString (line 306) | @Override method testJdkEnum (line 317) | @Test FILE: gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java class EnumWithObfuscatedTest (line 32) | public class EnumWithObfuscatedTest { method setUp (line 35) | @Before type Gender (line 40) | public enum Gender { method testEnumClassWithObfuscated (line 48) | @Test FILE: gson/src/test/java/com/google/gson/functional/EscapingTest.java class EscapingTest (line 35) | public class EscapingTest { method setUp (line 38) | @Before method testEscapingQuotesInStringArray (line 43) | @Test method testEscapeAllHtmlCharacters (line 52) | @Test method testEscapingObjectFields (line 65) | @Test method testGsonAcceptsEscapedAndNonEscapedJsonDeserialization (line 77) | @Test method testGsonDoubleDeserialization (line 92) | @Test FILE: gson/src/test/java/com/google/gson/functional/ExclusionStrategyFunctionalTest.java class ExclusionStrategyFunctionalTest (line 41) | public class ExclusionStrategyFunctionalTest { method shouldSkipField (line 44) | @Override method shouldSkipClass (line 49) | @Override method setUp (line 57) | @Before method testExclusionStrategySerialization (line 62) | @Test method testExclusionStrategySerializationDoesNotImpactDeserialization (line 71) | @Test method testExclusionStrategyDeserialization (line 81) | @Test method testExclusionStrategySerializationDoesNotImpactSerialization (line 97) | @Test method testExclusionStrategyWithMode (line 106) | @Test method testExcludeTopLevelClassSerialization (line 126) | @Test method testExcludeTopLevelClassSerializationDoesNotImpactDeserialization (line 135) | @Test method testExcludeTopLevelClassDeserialization (line 148) | @Test method testExcludeTopLevelClassDeserializationDoesNotImpactSerialization (line 159) | @Test method createGson (line 171) | private static Gson createGson(ExclusionStrategy exclusionStrategy, bo... class SampleObjectForTest (line 187) | private static class SampleObjectForTest { method SampleObjectForTest (line 192) | SampleObjectForTest() { method SampleObjectForTest (line 196) | SampleObjectForTest(int annotatedField, String stringField, long lon... class MyExclusionStrategy (line 203) | private static final class MyExclusionStrategy implements ExclusionStr... method MyExclusionStrategy (line 206) | private MyExclusionStrategy(Class typeToSkip) { method shouldSkipClass (line 210) | @Override method shouldSkipField (line 215) | @Override FILE: gson/src/test/java/com/google/gson/functional/ExposeFieldsTest.java class ExposeFieldsTest (line 35) | public class ExposeFieldsTest { method setUp (line 39) | @Before method testNullExposeFieldSerialization (line 48) | @Test method testArrayWithOneNullExposeFieldObjectSerialization (line 56) | @Test method testExposeAnnotationSerialization (line 76) | @Test method testExposeAnnotationDeserialization (line 82) | @Test method testNoExposedFieldSerialization (line 92) | @Test method testNoExposedFieldDeserialization (line 100) | @Test method testExposedInterfaceFieldSerialization (line 109) | @Test method testExposedInterfaceFieldDeserialization (line 118) | @Test class ClassWithExposedFields (line 126) | private static class ClassWithExposedFields { method ClassWithExposedFields (line 141) | ClassWithExposedFields(Integer a, Integer b) { method ClassWithExposedFields (line 145) | ClassWithExposedFields(Integer a, Integer b, long c, double d, char ... method getExpectedJson (line 153) | String getExpectedJson() { class ClassWithNoExposedFields (line 164) | private static class ClassWithNoExposedFields { type SomeInterface (line 169) | private static interface SomeInterface { class SomeObject (line 173) | private static class SomeObject implements SomeInterface { class SomeInterfaceInstanceCreator (line 177) | private static class SomeInterfaceInstanceCreator implements InstanceC... method createInstance (line 178) | @Override class ClassWithInterfaceField (line 184) | private static class ClassWithInterfaceField { method ClassWithInterfaceField (line 187) | ClassWithInterfaceField(SomeInterface interfaceField) { FILE: gson/src/test/java/com/google/gson/functional/FieldExclusionTest.java class FieldExclusionTest (line 33) | public class FieldExclusionTest { method setUp (line 38) | @Before method testDefaultInnerClassExclusion (line 43) | @Test method testInnerClassExclusion (line 56) | @Test method testDefaultNestedStaticClassIncluded (line 64) | @Test class Outer (line 77) | private static class Outer { class Inner (line 79) | @SuppressWarnings("ClassCanBeStatic") method Inner (line 81) | Inner(String value) { class NestedClass (line 87) | private static class NestedClass { method NestedClass (line 90) | NestedClass(String value) { method toJson (line 94) | String toJson() { FILE: gson/src/test/java/com/google/gson/functional/FieldNamingTest.java class FieldNamingTest (line 33) | public final class FieldNamingTest { method testIdentity (line 34) | @Test method testUpperCamelCase (line 44) | @Test method testUpperCamelCaseWithSpaces (line 54) | @Test method testUpperCaseWithUnderscores (line 64) | @Test method testLowerCaseWithUnderscores (line 74) | @Test method testLowerCaseWithDashes (line 84) | @Test method getGsonWithNamingPolicy (line 94) | private static Gson getGsonWithNamingPolicy(FieldNamingPolicy fieldNam... class TestNames (line 99) | @SuppressWarnings({"unused", "MemberName", "ConstantField"}) FILE: gson/src/test/java/com/google/gson/functional/FormattingStyleTest.java class FormattingStyleTest (line 38) | @RunWith(JUnit4.class) method createInput (line 42) | private static Map> createInput() { method buildExpected (line 48) | private static String buildExpected(String newline, String indent, boo... method testDefault (line 65) | @Test method testVariousCombinationsParse (line 72) | @Test method toJson (line 96) | private static String toJson(Object obj, FormattingStyle style) { method testFormatCompact (line 100) | @Test method testFormatPretty (line 109) | @Test method testFormatPrettySingleLine (line 125) | @Test method testFormat (line 135) | @Test method testCompactToPretty (line 158) | @Test method testPrettyToCompact (line 172) | @Test method testStyleValidations (line 182) | @Test FILE: gson/src/test/java/com/google/gson/functional/GsonVersionDiagnosticsTest.java class GsonVersionDiagnosticsTest (line 35) | public class GsonVersionDiagnosticsTest { method setUp (line 42) | @Before method testVersionPattern (line 62) | @Test method testAssertionErrorInSerializationPrintsVersion (line 68) | @Test method testAssertionErrorInDeserializationPrintsVersion (line 74) | @Test method ensureAssertionErrorPrintsGsonVersion (line 82) | private static void ensureAssertionErrorPrintsGsonVersion(AssertionErr... class TestType (line 94) | private static final class TestType { FILE: gson/src/test/java/com/google/gson/functional/InheritanceTest.java class InheritanceTest (line 50) | public class InheritanceTest { method setUp (line 53) | @Before method testSubClassSerialization (line 58) | @Test method testSubClassDeserialization (line 67) | @Test method testClassWithBaseFieldSerialization (line 78) | @Test method testClassWithBaseArrayFieldSerialization (line 86) | @Test method testClassWithBaseCollectionFieldSerialization (line 98) | @Test method testBaseSerializedAsSub (line 112) | @Test method testBaseSerializedAsSubForToJsonMethod (line 119) | @Test method testBaseSerializedAsBaseWhenSpecifiedWithExplicitType (line 126) | @Test method testBaseSerializedAsBaseWhenSpecifiedWithExplicitTypeForToJsonMethod (line 134) | @Test method testBaseSerializedAsSubWhenSpecifiedWithExplicitType (line 142) | @Test method testBaseSerializedAsSubWhenSpecifiedWithExplicitTypeForToJsonMethod (line 149) | @Test class SubTypeOfNested (line 156) | private static class SubTypeOfNested extends Nested { method SubTypeOfNested (line 159) | SubTypeOfNested(BagOfPrimitives primitive1, BagOfPrimitives primitiv... method appendFields (line 163) | @Override method testSubInterfacesOfCollectionSerialization (line 170) | @Test method testSubInterfacesOfCollectionDeserialization (line 198) | @Test class ClassWithSubInterfacesOfCollection (line 212) | private static class ClassWithSubInterfacesOfCollection { method ClassWithSubInterfacesOfCollection (line 218) | ClassWithSubInterfacesOfCollection( method listContains (line 226) | boolean listContains(int... values) { method queueContains (line 235) | boolean queueContains(long... values) { method setContains (line 244) | boolean setContains(float... values) { method sortedSetContains (line 253) | boolean sortedSetContains(char... values) { method getExpectedJson (line 262) | String getExpectedJson() { method append (line 277) | @CanIgnoreReturnValue FILE: gson/src/test/java/com/google/gson/functional/InstanceCreatorTest.java class InstanceCreatorTest (line 41) | public class InstanceCreatorTest { method testInstanceCreatorReturnsBaseType (line 43) | @Test method testInstanceCreatorReturnsSubTypeForTopLevelObject (line 54) | @Test method testInstanceCreatorReturnsSubTypeForField (line 70) | @Test method testInstanceCreatorForCollectionType (line 83) | @Test method testInstanceCreatorForParametrizedType (line 94) | @SuppressWarnings("unchecked") FILE: gson/src/test/java/com/google/gson/functional/InterfaceTest.java class InterfaceTest (line 31) | public class InterfaceTest { method setUp (line 37) | @Before method testSerializingObjectImplementingInterface (line 43) | @Test method testSerializingInterfaceObjectField (line 48) | @Test type TestObjectInterface (line 54) | private static interface TestObjectInterface { class TestObject (line 58) | private static class TestObject implements TestObjectInterface { method TestObject (line 62) | private TestObject(String value) { class TestObjectWrapper (line 67) | private static class TestObjectWrapper { method TestObjectWrapper (line 71) | private TestObjectWrapper(TestObjectInterface obj) { FILE: gson/src/test/java/com/google/gson/functional/InternationalizationTest.java class InternationalizationTest (line 30) | public class InternationalizationTest { method setUp (line 33) | @Before method testStringsWithUnicodeChineseCharactersSerialization (line 38) | @Test method testStringsWithUnicodeChineseCharactersDeserialization (line 46) | @Test method testStringsWithUnicodeChineseCharactersEscapedDeserialization (line 54) | @Test method testSupplementaryUnicodeSerialization (line 60) | @Test method testSupplementaryUnicodeDeserialization (line 68) | @Test method testSupplementaryUnicodeEscapedDeserialization (line 76) | @Test FILE: gson/src/test/java/com/google/gson/functional/Java17RecordTest.java class Java17RecordTest (line 46) | @RunWith(JUnit4.class) method testFirstNameIsChosenForSerialization (line 50) | @Test method testMultipleNamesDeserializedCorrectly (line 57) | @Test method testMultipleNamesInTheSameString (line 70) | @Test method testSerializedNameOnAccessor (line 88) | @Test method testFieldNamingStrategy (line 106) | @Test method testUnknownJsonProperty (line 116) | @Test method testDuplicateJsonProperties (line 124) | @Test method testConstructorRuns (line 133) | @Test method testThrowingConstructor (line 147) | @Test method testAccessorIsCalled (line 172) | @Test method testThrowingAccessor (line 186) | @Test method testEmptyRecord (line 207) | @Test method testRecordNull (line 219) | @Test method testPrimitiveDefaultValues (line 228) | @Test method testPrimitiveJsonNullValue (line 235) | @Test method testPrimitiveAdapterNullValue (line 251) | @Test method testObjectDefaultValue (line 294) | @Test method testStaticFieldSerialization (line 307) | @Test method testStaticFieldDeserialization (line 328) | @Test method testExposeAnnotation (line 356) | @Test method testFieldExclusionStrategy (line 365) | @Test method testJsonAdapterAnnotation (line 388) | @Test method testClassReflectionFilter (line 409) | @Test method testReflectionFilterBlockInaccessible (line 432) | @Test method testRecordBaseClass (line 467) | @Test FILE: gson/src/test/java/com/google/gson/functional/JavaUtilConcurrentAtomicTest.java class JavaUtilConcurrentAtomicTest (line 36) | public class JavaUtilConcurrentAtomicTest { method setUp (line 39) | @Before method testAtomicBoolean (line 44) | @Test method testAtomicInteger (line 52) | @Test method testAtomicLong (line 60) | @Test method testAtomicLongWithStringSerializationPolicy (line 68) | @Test method testAtomicIntegerArray (line 78) | @Test method testAtomicLongArray (line 89) | @Test method testAtomicLongArrayWithStringSerializationPolicy (line 100) | @Test class AtomicLongHolder (line 113) | private static class AtomicLongHolder { FILE: gson/src/test/java/com/google/gson/functional/JavaUtilTest.java class JavaUtilTest (line 28) | public class JavaUtilTest { method setUp (line 31) | @Before method testCurrency (line 36) | @Test class CurrencyHolder (line 49) | private static class CurrencyHolder { method testProperties (line 53) | @Test FILE: gson/src/test/java/com/google/gson/functional/JsonAdapterAnnotationOnClassesTest.java class JsonAdapterAnnotationOnClassesTest (line 46) | @SuppressWarnings("ClassNamedLikeTypeParameter") // for dummy classes A,... method testJsonAdapterInvoked (line 49) | @Test method testJsonAdapterFactoryInvoked (line 68) | @Test method testRegisteredAdapterOverridesJsonAdapter (line 77) | @Test method testRegisteredSerializerOverridesJsonAdapter (line 97) | @Test method testRegisteredDeserializerOverridesJsonAdapter (line 109) | @Test method testIncorrectTypeAdapterFails (line 119) | @Test method testSuperclassTypeAdapterNotInvoked (line 126) | @Test method testNullSafeObject (line 132) | @Test method testFactoryReturningNull (line 153) | @Test class WithNullReturningFactory (line 179) | @JsonAdapter(value = WithNullReturningFactory.NullReturningFactory.cla... method WithNullReturningFactory (line 183) | WithNullReturningFactory(T t) { class NullReturningFactory (line 187) | static class NullReturningFactory implements TypeAdapterFactory { method create (line 188) | @Override class A (line 221) | @JsonAdapter(A.JsonAdapter.class) method A (line 225) | A(String value) { class JsonAdapter (line 229) | static final class JsonAdapter extends TypeAdapter { method write (line 230) | @Override method read (line 235) | @Override class C (line 243) | @JsonAdapter(C.JsonAdapterFactory.class) method C (line 247) | C(String value) { class JsonAdapterFactory (line 251) | static final class JsonAdapterFactory implements TypeAdapterFactory { method create (line 252) | @Override class B (line 271) | private static final class B extends A { method B (line 272) | B(String value) { class ClassWithIncorrectJsonAdapter (line 279) | @JsonAdapter(A.JsonAdapter.class) method ClassWithIncorrectJsonAdapter (line 284) | ClassWithIncorrectJsonAdapter(String value) { class User (line 290) | @JsonAdapter(UserJsonAdapter.class) method User (line 295) | User(String firstName, String lastName) { class UserJsonAdapter (line 301) | private static class UserJsonAdapter extends TypeAdapter { method write (line 302) | @Override method read (line 311) | @Override class NullableClass (line 323) | @JsonAdapter(value = NullableClassJsonAdapter.class) class NullableClassJsonAdapter (line 326) | private static class NullableClassJsonAdapter extends TypeAdapter { method write (line 346) | @Override method read (line 351) | @Override method testIncorrectJsonAdapterType (line 357) | @Test class WithInvalidAdapterClass (line 371) | @JsonAdapter(Integer.class) method testDelegatingAdapterFactory (line 382) | @Test class WithDelegatingFactory (line 399) | @JsonAdapter(WithDelegatingFactory.Factory.class) method WithDelegatingFactory (line 403) | WithDelegatingFactory(T f) { class Factory (line 407) | static class Factory implements TypeAdapterFactory { method create (line 408) | @Override method testDelegatingAdapterFactory_Delayed (line 445) | @Test class WithDelayedDelegatingFactory (line 455) | @JsonAdapter(WithDelayedDelegatingFactory.Factory.class) method WithDelayedDelegatingFactory (line 459) | WithDelayedDelegatingFactory(String f) { class Factory (line 463) | static class Factory implements TypeAdapterFactory { method create (line 464) | @Override method testDelegating_SameFactoryClass (line 502) | @Test method testDelegating_SameFactoryInstance (line 525) | @Test method testDelegating_SameFactoryClass_OnClassAndField (line 560) | @Test method testDelegating_SameFactoryInstance_OnClassAndField (line 601) | @Test class WithDelegatingFactoryOnClassAndField (line 642) | @JsonAdapter(WithDelegatingFactoryOnClassAndField.Factory.class) method WithDelegatingFactoryOnClassAndField (line 649) | WithDelegatingFactoryOnClassAndField(String f) { class Factory (line 653) | static class Factory implements TypeAdapterFactory { method create (line 654) | @Override method testJsonSerializer (line 684) | @Test class WithJsonSerializer (line 696) | @JsonAdapter(WithJsonSerializer.Serializer.class) class Serializer (line 700) | static class Serializer implements JsonSerializer { method serialize (line 701) | @Override method testJsonDeserializer (line 710) | @Test class WithJsonDeserializer (line 723) | @JsonAdapter(WithJsonDeserializer.Deserializer.class) method WithJsonDeserializer (line 727) | WithJsonDeserializer(String f) { class Deserializer (line 731) | static class Deserializer implements JsonDeserializer { method Serializer (line 794) | @SuppressWarnings("unused") method serialize (line 799) | @Override FILE: gson/src/test/java/com/google/gson/functional/JsonAdapterAnnotationOnFieldsTest.java class JsonAdapterAnnotationOnFieldsTest (line 46) | public final class JsonAdapterAnnotationOnFieldsTest { method testClassAnnotationAdapterTakesPrecedenceOverDefault (line 47) | @Test method testClassAnnotationAdapterFactoryTakesPrecedenceOverDefault (line 56) | @Test method testRegisteredTypeAdapterTakesPrecedenceOverClassAnnotationAdapter (line 65) | @Test method testFieldAnnotationTakesPrecedenceOverRegisteredTypeAdapter (line 75) | @Test method testFieldAnnotationTakesPrecedenceOverClassAnnotation (line 99) | @Test class Gadget (line 108) | private static final class Gadget { method Gadget (line 112) | Gadget(Part part) { class Gizmo (line 117) | private static final class Gizmo { method Gizmo (line 121) | Gizmo(Part part) { class Part (line 126) | private static final class Part { method Part (line 129) | Part(String name) { class PartJsonFieldAnnotationAdapter (line 134) | private static class PartJsonFieldAnnotationAdapter extends TypeAdapte... method write (line 135) | @Override method read (line 140) | @Override class GizmoPartTypeAdapterFactory (line 147) | private static class GizmoPartTypeAdapterFactory implements TypeAdapte... method create (line 148) | @Override class Computer (line 166) | private static final class Computer { method Computer (line 169) | Computer(User user) { class User (line 174) | @JsonAdapter(UserClassAnnotationAdapter.class) method User (line 178) | private User(String name) { class UserClassAnnotationAdapter (line 183) | private static class UserClassAnnotationAdapter extends TypeAdapter part) { class Gizmo2PartTypeAdapterFactory (line 352) | private static class Gizmo2PartTypeAdapterFactory implements TypeAdapt... method create (line 353) | @Override method testOverwriteBuiltIn (line 375) | @Test class BuiltInOverwriting (line 386) | private static class BuiltInOverwriting { class JsonElementAdapter (line 391) | private static class JsonElementAdapter extends TypeAdapter { class Factory (line 568) | static class Factory implements TypeAdapterFactory { method create (line 569) | @SuppressWarnings("unchecked") method testDelegatingAdapterFactory_Delayed (line 596) | @Test class WithDelayedDelegatingFactory (line 608) | @SuppressWarnings("SameNameButDifferent") class Factory (line 613) | static class Factory implements TypeAdapterFactory { method create (line 614) | @SuppressWarnings("unchecked") method testGetAdapterDelegation (line 645) | @Test class GetAdapterDelegation (line 655) | private static class GetAdapterDelegation { method GetAdapterDelegation (line 661) | GetAdapterDelegation(String f) { class Factory (line 665) | static class Factory implements TypeAdapterFactory { method create (line 666) | @SuppressWarnings("unchecked") method testJsonSerializer (line 689) | @Test class WithJsonSerializer (line 701) | private static class WithJsonSerializer { class Serializer (line 705) | static class Serializer implements JsonSerializer> { method serialize (line 706) | @Override method testJsonDeserializer (line 715) | @Test class WithJsonDeserializer (line 727) | private static class WithJsonDeserializer { method WithJsonDeserializer (line 731) | WithJsonDeserializer(List f) { class Deserializer (line 735) | static class Deserializer implements JsonDeserializer> { method deserialize (line 736) | @Override FILE: gson/src/test/java/com/google/gson/functional/JsonAdapterSerializerDeserializerTest.java class JsonAdapterSerializerDeserializerTest (line 43) | public final class JsonAdapterSerializerDeserializerTest { method testJsonSerializerDeserializerBasedJsonAdapterOnFields (line 45) | @Test class Computer (line 58) | private static final class Computer { method Computer (line 71) | Computer(User user1, User user2, User user3) { class User (line 78) | private static final class User { method User (line 81) | private User(String name) { class UserSerializer (line 86) | private static final class UserSerializer implements JsonSerializer { method Base (line 183) | Base(T value) { class BaseStringAdapter (line 188) | private static final class BaseStringAdapter implements JsonSerializer... method serialize (line 189) | @Override class BaseIntegerAdapter (line 196) | private static final class BaseIntegerAdapter implements JsonSerialize... method serialize (line 197) | @Override method testJsonAdapterNullSafe (line 204) | @Test class WithNullSafe (line 243) | @SuppressWarnings("MemberName") method WithNullSafe (line 259) | WithNullSafe(User userS, User userSN, User userD, User userDN) { FILE: gson/src/test/java/com/google/gson/functional/JsonParserTest.java class JsonParserTest (line 47) | public class JsonParserTest { method setUp (line 50) | @Before method testParseInvalidJson (line 55) | @Test method testDeserializingCustomTree (line 61) | @Test method testBadTypeForDeserializingCustomTree (line 71) | @Test method testBadFieldTypeForCustomDeserializerCustomTree (line 82) | @Test method testBadFieldTypeForDeserializingCustomTree (line 95) | @Test method testChangingCustomTreeAndDeserializing (line 111) | @Test method testExtraCommasInArrays (line 124) | @Test method testExtraCommasInMaps (line 133) | @Test FILE: gson/src/test/java/com/google/gson/functional/JsonTreeTest.java class JsonTreeTest (line 39) | public class JsonTreeTest { method setUp (line 42) | @Before method testToJsonTree (line 47) | @Test method testToJsonTreeObjectType (line 61) | @Test method testJsonTreeToString (line 75) | @Test method testJsonTreeNull (line 84) | @Test method assertContains (line 91) | private static void assertContains(JsonObject json, JsonPrimitive chil... class SubTypeOfBagOfPrimitives (line 103) | private static class SubTypeOfBagOfPrimitives extends BagOfPrimitives { method SubTypeOfBagOfPrimitives (line 107) | SubTypeOfBagOfPrimitives(long l, int i, boolean b, String string, fl... FILE: gson/src/test/java/com/google/gson/functional/LeniencyTest.java class LeniencyTest (line 29) | public class LeniencyTest { method setUp (line 33) | @SuppressWarnings({"deprecation", "InlineMeInliner"}) // for GsonBuild... method testLenientFromJson (line 39) | @Test FILE: gson/src/test/java/com/google/gson/functional/MapAsArrayTypeAdapterTest.java class MapAsArrayTypeAdapterTest (line 33) | public class MapAsArrayTypeAdapterTest { method testSerializeComplexMapWithTypeAdapter (line 35) | @Test method testTwoTypesCollapseToOneSerialize (line 60) | @Test method testTwoTypesCollapseToOneDeserialize (line 73) | @Test method testMultipleEnableComplexKeyRegistrationHasNoEffect (line 83) | @Test method testMapWithTypeVariableSerialization (line 100) | @Test method testMapWithTypeVariableDeserialization (line 110) | @Test class Point (line 122) | static class Point { method Point (line 126) | Point(int x, int y) { method Point (line 131) | Point() {} method equals (line 133) | @Override method hashCode (line 138) | @Override method toString (line 143) | @Override class PointWithProperty (line 149) | static class PointWithProperty { FILE: gson/src/test/java/com/google/gson/functional/MapTest.java class MapTest (line 61) | public class MapTest { method setUp (line 64) | @Before method testMapSerialization (line 69) | @Test method testMapDeserialization (line 80) | @Test method testObjectMapSerialization (line 89) | @Test method testMapSerializationEmpty (line 99) | @Test method testMapDeserializationEmpty (line 107) | @Test method testMapSerializationWithNullValue (line 114) | @Test method testMapDeserializationWithNullValue (line 125) | @Test method testMapSerializationWithNullValueButSerializeNulls (line 133) | @Test method testMapSerializationWithNullKey (line 144) | @Test method testMapDeserializationWithNullKey (line 154) | @Test method testMapSerializationWithIntegerKeys (line 168) | @Test method testMapDeserializationWithIntegerKeys (line 178) | @Test method testMapDeserializationWithUnquotedIntegerKeys (line 187) | @Test method testMapDeserializationWithLongKeys (line 196) | @Test method testMapDeserializationWithUnquotedLongKeys (line 207) | @Test method testMapStringKeyDeserialization (line 218) | @Test method testMapStringSupertypeKeyDeserialization (line 233) | @Test method testMapNonStringKeyDeserialization (line 247) | @Test method testHashMapDeserialization (line 260) | @Test method testSortedMap (line 269) | @Test method testConcurrentMap (line 278) | @Test method testConcurrentHashMap (line 289) | @Test method testConcurrentNavigableMap (line 300) | @Test method testConcurrentSkipListMap (line 311) | @Test method testParameterizedMapSubclassSerialization (line 322) | @Test class MyParameterizedMap (line 331) | @SuppressWarnings({"unused", "serial"}) method MyParameterizedMap (line 335) | MyParameterizedMap(int foo) { method testMapSubclassSerialization (line 340) | @Test method testMapStandardSubclassDeserialization (line 348) | @Test method testMapSubclassDeserialization (line 357) | @Test method testCustomSerializerForSpecificMapType (line 369) | @Test class MapWithoutNoArgsConstructor (line 394) | private static class MapWithoutNoArgsConstructor extends Abstrac... method MapWithoutNoArgsConstructor (line 396) | MapWithoutNoArgsConstructor(int unused) {} method put (line 398) | @Override method entrySet (line 403) | @Override method testMapWithoutNoArgsConstructor (line 413) | @Test class ClassWithAMap (line 440) | private static class ClassWithAMap { method testMapSerializationWithNullValues (line 445) | @Test method testMapSerializationWithNullValuesSerialized (line 456) | @Test method testMapSerializationWithWildcardValues (line 467) | @Test method testMapDeserializationWithWildcardValues (line 478) | @Test class MyMap (line 486) | private static class MyMap extends LinkedHashMap { method testMapOfMapSerialization (line 494) | @Test method testMapOfMapDeserialization (line 508) | @Test method testMapWithQuotes (line 519) | @Test method testWriteMapsWithEmptyStringKey (line 528) | @Test method testReadMapsWithEmptyStringKey (line 535) | @Test method testSerializeMaps (line 543) | @Test method testInterfaceTypeMap (line 575) | @Test method testInterfaceTypeMapWithSerializer (line 595) | @Test method testGeneralMapField (line 625) | @Test method testComplexKeysSerialization (line 641) | @Test method testComplexKeysDeserialization (line 651) | @Test method testStringKeyDeserialization (line 662) | @Test method testNumberKeyDeserialization (line 671) | @Test method testBooleanKeyDeserialization (line 680) | @Test method testMapDeserializationWithDuplicateKeys (line 689) | @Test method testSerializeMapOfMaps (line 696) | @Test method testDeserializeMapOfMaps (line 707) | @Test method newMap (line 718) | private static Map newMap(K key1, V value1, K key2, V val... method testMapNamePromotionWithJsonElementReader (line 725) | @Test class Point (line 734) | static class Point { method Point (line 738) | Point(int x, int y) { method equals (line 743) | @Override method hashCode (line 748) | @Override method toString (line 753) | @Override class MapClass (line 759) | static final class MapClass { method addBase (line 763) | public final void addBase(String name, TestTypes.Base value) { method addSub (line 767) | public final void addSub(String name, TestTypes.Sub value) { class MapWithGeneralMapParameters (line 772) | static final class MapWithGeneralMapParameters { FILE: gson/src/test/java/com/google/gson/functional/MoreSpecificTypeSerializationTest.java class MoreSpecificTypeSerializationTest (line 36) | @SuppressWarnings("unused") method setUp (line 40) | @Before method testSubclassFields (line 45) | @Test method testListOfSubclassFields (line 53) | @Test method testMapOfSubclassFields (line 64) | @Test method testParameterizedSubclassFields (line 78) | @Test method testListOfParameterizedSubclassFields (line 91) | @Test method testMapOfParameterizedSubclassFields (line 107) | @Test class Base (line 121) | private static class Base { method Base (line 124) | Base(int b) { class Sub (line 129) | private static class Sub extends Base { method Sub (line 132) | Sub(int b, int s) { class ClassWithBaseFields (line 138) | private static class ClassWithBaseFields { method ClassWithBaseFields (line 141) | ClassWithBaseFields(Base b) { class ClassWithContainersOfBaseFields (line 146) | private static class ClassWithContainersOfBaseFields { method ClassWithContainersOfBaseFields (line 150) | ClassWithContainersOfBaseFields(Collection collection, Map { method ParameterizedBase (line 159) | ParameterizedBase(T t) { class ParameterizedSub (line 164) | private static class ParameterizedSub extends ParameterizedBase { method ParameterizedSub (line 167) | ParameterizedSub(T t, T s) { class ClassWithParameterizedBaseFields (line 173) | private static class ClassWithParameterizedBaseFields { method ClassWithParameterizedBaseFields (line 176) | ClassWithParameterizedBaseFields(ParameterizedBase b) { class ClassWithContainersOfParameterizedBaseFields (line 181) | private static class ClassWithContainersOfParameterizedBaseFields { method ClassWithContainersOfParameterizedBaseFields (line 185) | ClassWithContainersOfParameterizedBaseFields( FILE: gson/src/test/java/com/google/gson/functional/NamingPolicyTest.java class NamingPolicyTest (line 40) | public class NamingPolicyTest { method setUp (line 43) | @Before method testGsonWithNonDefaultFieldNamingPolicySerialization (line 48) | @Test method testGsonWithNonDefaultFieldNamingPolicyDeserialiation (line 59) | @Test method testGsonWithLowerCaseDashPolicySerialization (line 67) | @Test method testGsonWithLowerCaseDotPolicySerialization (line 78) | @Test method testGsonWithLowerCaseDotPolicyDeserialiation (line 89) | @Test method testGsonWithLowerCaseDashPolicyDeserialiation (line 97) | @Test method testGsonWithLowerCaseUnderscorePolicySerialization (line 105) | @Test method testGsonWithLowerCaseUnderscorePolicyDeserialiation (line 117) | @Test method testGsonWithSerializedNameFieldNamingPolicySerialization (line 126) | @Test method testGsonWithSerializedNameFieldNamingPolicyDeserialization (line 134) | @Test method testGsonDuplicateNameUsingSerializedNameFieldNamingPolicySerialization (line 143) | @Test method testGsonDuplicateNameDueToBadNamingPolicy (line 158) | @Test method testGsonWithUpperCamelCaseSpacesPolicySerialiation (line 174) | @Test method testGsonWithUpperCamelCaseSpacesPolicyDeserialiation (line 186) | @Test method testGsonWithUpperCaseUnderscorePolicySerialization (line 195) | @Test method testGsonWithUpperCaseUnderscorePolicyDeserialiation (line 207) | @Test method testDeprecatedNamingStrategy (line 216) | @Test method testComplexFieldNameStrategy (line 224) | @Test method testAtSignInSerializedName (line 236) | @Test method testGsonWithNameDeserialiation (line 241) | @Test method testGsonWithAlternateNamesDeserialiation (line 264) | @Test method testGsonWithAlternateNamesSerialization (line 287) | @Test class AtName (line 313) | static final class AtName { class UpperCaseNamingStrategy (line 318) | private static final class UpperCaseNamingStrategy implements FieldNam... method translateName (line 319) | @Override class ClassWithDuplicateFields (line 325) | @SuppressWarnings("unused") method ClassWithDuplicateFields (line 332) | ClassWithDuplicateFields(Integer a) { method ClassWithDuplicateFields (line 336) | ClassWithDuplicateFields(Double b) { method ClassWithDuplicateFields (line 340) | ClassWithDuplicateFields(Integer a, Double b) { class ClassWithComplexFieldName (line 346) | private static class ClassWithComplexFieldName { method ClassWithComplexFieldName (line 350) | ClassWithComplexFieldName(long value) { class ClassWithTwoFields (line 355) | @SuppressWarnings("unused") method ClassWithTwoFields (line 360) | ClassWithTwoFields() {} FILE: gson/src/test/java/com/google/gson/functional/NullObjectAndFieldTest.java class NullObjectAndFieldTest (line 42) | public class NullObjectAndFieldTest { method setUp (line 45) | @Before method testTopLevelNullObjectSerialization (line 50) | @Test method testTopLevelNullObjectDeserialization (line 60) | @Test method testExplicitSerializationOfNulls (line 67) | @Test method testExplicitDeserializationOfNulls (line 76) | @Test method testExplicitSerializationOfNullArrayMembers (line 83) | @Test method testNullWrappedPrimitiveMemberSerialization (line 92) | @Test method testNullWrappedPrimitiveMemberDeserialization (line 101) | @Test method testExplicitSerializationOfNullCollectionMembers (line 109) | @Test method testExplicitSerializationOfNullStringMembers (line 117) | @Test method testCustomSerializationOfNulls (line 125) | @Test method testPrintPrintingObjectWithNulls (line 135) | @Test method testPrintPrintingArraysWithNulls (line 147) | @Test method testAbsentJsonElementsAreSetToNull (line 160) | @Test class ClassWithInitializedMembers (line 177) | public static class ClassWithInitializedMembers { method ClassWithInitializedMembers (line 191) | public ClassWithInitializedMembers() { class ClassWithNullWrappedPrimitive (line 196) | private static class ClassWithNullWrappedPrimitive { class ClassWithMembers (line 200) | @SuppressWarnings("unused") class ClassWithObjectsSerializer (line 207) | private static class ClassWithObjectsSerializer implements JsonSeriali... method serialize (line 208) | @Override method testExplicitNullSetsFieldToNullDuringDeserialization (line 217) | @Test method testCustomTypeAdapterPassesNullSerialization (line 225) | @Test method testCustomTypeAdapterPassesNullDeserialization (line 240) | @Test class ObjectWithField (line 254) | private static class ObjectWithField { FILE: gson/src/test/java/com/google/gson/functional/NumberLimitsTest.java class NumberLimitsTest (line 25) | public class NumberLimitsTest { method jsonReader (line 28) | private static JsonReader jsonReader(String json) { method testJsonReader (line 49) | @Test method testJsonPrimitive (line 80) | @Test method testToNumberPolicy (line 117) | @Test method testLazilyParsedNumber (line 147) | @Test method testBigDecimalAdapter (line 181) | @Test method testBigIntegerAdapter (line 209) | @Test FILE: gson/src/test/java/com/google/gson/functional/ObjectTest.java class ObjectTest (line 65) | public class ObjectTest { method setUp (line 70) | @Before method tearDown (line 80) | @After method testJsonInSingleQuotesDeserialization (line 86) | @Test method testJsonInMixedQuotesDeserialization (line 95) | @Test method testBagOfPrimitivesSerialization (line 104) | @Test method testBagOfPrimitivesDeserialization (line 110) | @Test method testBagOfPrimitiveWrappersSerialization (line 118) | @Test method testBagOfPrimitiveWrappersDeserialization (line 124) | @Test method testClassWithTransientFieldsSerialization (line 132) | @Test method testClassWithTransientFieldsDeserialization (line 138) | @Test method testClassWithTransientFieldsDeserializationTransientFieldsPassedInJsonAreIgnored (line 145) | @Test method testClassWithNoFieldsSerialization (line 152) | @Test method testClassWithNoFieldsDeserialization (line 157) | @Test class Subclass (line 165) | private static class Subclass extends Superclass1 {} class Superclass1 (line 167) | private static class Superclass1 extends Superclass2 { class Superclass2 (line 172) | private static class Superclass2 { method testClassWithDuplicateFields (line 177) | @Test method testNestedSerialization (line 211) | @Test method testNestedDeserialization (line 220) | @Test method testNullSerialization (line 230) | @Test method testEmptyStringDeserialization (line 235) | @Test method testTruncatedDeserialization (line 241) | @Test method testNullDeserialization (line 248) | @Test method testNullFieldsSerialization (line 255) | @Test method testNullFieldsDeserialization (line 261) | @Test method testArrayOfObjectsSerialization (line 270) | @Test method testArrayOfObjectsDeserialization (line 276) | @Test method testArrayOfArraysSerialization (line 283) | @Test method testArrayOfArraysDeserialization (line 289) | @Test method testArrayOfObjectsAsFields (line 296) | @Test method testNullArraysDeserialization (line 314) | @Test method testNullObjectFieldsDeserialization (line 322) | @Test method testEmptyCollectionInAnObjectDeserialization (line 329) | @Test class ClassWithCollectionField (line 337) | private static class ClassWithCollectionField { method testPrimitiveArrayInAnObjectDeserialization (line 341) | @Test method testNullPrimitiveFieldsDeserialization (line 349) | @Test method testEmptyCollectionInAnObjectSerialization (line 356) | @Test method testPrivateNoArgConstructorDeserialization (line 362) | @Test method testAnonymousLocalClassesSerialization (line 369) | @Test method testAnonymousLocalClassesCustomSerialization (line 382) | @Test method testAnonymousLocalClassesCustomDeserialization (line 410) | @Test method testPrimitiveArrayFieldSerialization (line 439) | @Test method testClassWithObjectFieldSerialization (line 446) | @Test class ClassWithObjectField (line 454) | private static class ClassWithObjectField { method testInnerClassSerialization (line 459) | @Test method testInnerClassDeserialization (line 468) | @Test class Parent (line 487) | private static class Parent { class Child (line 491) | @SuppressWarnings("ClassCanBeStatic") class ArrayOfArrays (line 497) | private static class ArrayOfArrays { method ArrayOfArrays (line 500) | ArrayOfArrays() { method getExpectedJson (line 510) | String getExpectedJson() { class ClassWithPrivateNoArgsConstructor (line 536) | private static class ClassWithPrivateNoArgsConstructor { method ClassWithPrivateNoArgsConstructor (line 539) | private ClassWithPrivateNoArgsConstructor() { method testObjectFieldNamesWithoutQuotesDeserialization (line 545) | @Test method testStringFieldWithNumberValueDeserialization (line 554) | @Test method testStringFieldWithEmptyValueSerialization (line 570) | @Test method testStringFieldWithEmptyValueDeserialization (line 581) | @Test class ClassWithEmptyStringFields (line 590) | private static class ClassWithEmptyStringFields { method testJsonObjectSerialization (line 596) | @Test method testSingletonLists (line 605) | @Test class Department (line 630) | static final class Department { class Product (line 635) | static final class Product { method testDateAsMapObjectField (line 641) | @Test class HasObjectMap (line 650) | static class HasObjectMap { method testStaticFieldSerialization (line 660) | @Test method testStaticFieldDeserialization (line 684) | @Test class ClassWithStaticField (line 718) | @SuppressWarnings({"PrivateConstructorForUtilityClass", "NonFinalStati... class ClassWithStaticFinalField (line 723) | @SuppressWarnings("PrivateConstructorForUtilityClass") method testThrowingDefaultConstructor (line 728) | @Test class ClassWithThrowingConstructor (line 743) | static class ClassWithThrowingConstructor { method ClassWithThrowingConstructor (line 747) | public ClassWithThrowingConstructor() { method testDeeplyNested (line 752) | @Test class RecursiveClass (line 773) | private static class RecursiveClass { FILE: gson/src/test/java/com/google/gson/functional/ParameterizedTypesTest.java class ParameterizedTypesTest (line 50) | public class ParameterizedTypesTest { method setUp (line 53) | @Before method testParameterizedTypesSerialization (line 58) | @Test method testParameterizedTypeDeserialization (line 66) | @Test method testTypesWithMultipleParametersSerialization (line 83) | @Test method testTypesWithMultipleParametersDeserialization (line 97) | @Test method testParameterizedTypeWithCustomSerializer (line 112) | @Test method testParameterizedTypesWithCustomDeserializer (line 130) | @Test method testParameterizedTypesWithWriterSerialization (line 153) | @Test method testParameterizedTypeWithReaderDeserialization (line 162) | @Test method arrayOf (line 179) | @SuppressWarnings("varargs") method testVariableTypeFieldsAndGenericArraysSerialization (line 185) | @Test method testVariableTypeFieldsAndGenericArraysDeserialization (line 202) | @Test method testVariableTypeDeserialization (line 220) | @Test method testVariableTypeArrayDeserialization (line 231) | @Test method testParameterizedTypeWithVariableTypeDeserialization (line 244) | @Test method testParameterizedTypeGenericArraysSerialization (line 259) | @Test method testParameterizedTypeGenericArraysDeserialization (line 273) | @Test class ObjectWithTypeVariables (line 294) | private static class ObjectWithTypeVariables { method ObjectWithTypeVariables (line 303) | @SuppressWarnings("unused") method ObjectWithTypeVariables (line 308) | ObjectWithTypeVariables( method getExpectedJson (line 323) | String getExpectedJson() { method appendObjectsToBuilder (line 385) | private void appendObjectsToBuilder(StringBuilder sb, Iterable { method MultiParameters (line 426) | @SuppressWarnings("unused") method MultiParameters (line 429) | MultiParameters(A a, B b, C c, D d, E e) { method hashCode (line 438) | @Override method equals (line 450) | @Override class Quantity (line 468) | private static class Quantity { class MyQuantity (line 473) | private static class MyQuantity extends Quantity { type Measurable (line 478) | private interface Measurable {} type Field (line 480) | private interface Field {} type Immutable (line 482) | private interface Immutable {} class Amount (line 484) | public static final class Amount method testDeepParameterizedTypeSerialization (line 491) | @Test method testDeepParameterizedTypeDeserialization (line 499) | @Test method assertCorrectlyDeserialized (line 509) | private static void assertCorrectlyDeserialized(Object object) { method testGsonFromJsonTypeToken (line 516) | @Test FILE: gson/src/test/java/com/google/gson/functional/PrettyPrintingTest.java class PrettyPrintingTest (line 40) | public class PrettyPrintingTest { method setUp (line 44) | @Before method testPrettyPrintList (line 49) | @Test method testPrettyPrintArrayOfObjects (line 82) | @Test method testPrettyPrintArrayOfPrimitives (line 112) | @Test method testPrettyPrintArrayOfPrimitiveArrays (line 119) | @Test method testPrettyPrintListOfPrimitiveArrays (line 129) | @Test method testMap (line 140) | @Test method testEmptyMapField (line 150) | @Test class ClassWithMap (line 158) | @SuppressWarnings("unused") method testMultipleArrays (line 164) | @Test FILE: gson/src/test/java/com/google/gson/functional/PrimitiveCharacterTest.java class PrimitiveCharacterTest (line 31) | public class PrimitiveCharacterTest { method setUp (line 34) | @Before method testPrimitiveCharacterAutoboxedSerialization (line 39) | @Test method testPrimitiveCharacterAutoboxedDeserialization (line 46) | @Test FILE: gson/src/test/java/com/google/gson/functional/PrimitiveTest.java class PrimitiveTest (line 44) | public class PrimitiveTest { method setUp (line 47) | @Before method testPrimitiveIntegerAutoboxedSerialization (line 52) | @Test method testPrimitiveIntegerAutoboxedDeserialization (line 57) | @Test method testByteSerialization (line 67) | @Test method testByteDeserialization (line 78) | @Test method testByteDeserializationLossy (line 89) | @Test method testShortSerialization (line 106) | @Test method testShortDeserialization (line 121) | @Test method testShortDeserializationLossy (line 132) | @Test method testIntSerialization (line 149) | @Test method testLongSerialization (line 164) | @Test method testFloatSerialization (line 176) | @Test method testDoubleSerialization (line 194) | @Test method testPrimitiveIntegerAutoboxedInASingleElementArraySerialization (line 209) | @Test method testReallyLongValuesSerialization (line 217) | @Test method testReallyLongValuesDeserialization (line 223) | @Test method testPrimitiveLongAutoboxedSerialization (line 230) | @Test method testPrimitiveLongAutoboxedDeserialization (line 236) | @Test method testPrimitiveLongAutoboxedInASingleElementArraySerialization (line 246) | @Test method testPrimitiveBooleanAutoboxedSerialization (line 254) | @Test method testBooleanDeserialization (line 260) | @Test method testPrimitiveBooleanAutoboxedInASingleElementArraySerialization (line 268) | @Test method testNumberSerialization (line 276) | @Test method testNumberDeserialization (line 286) | @Test method testNumberAsStringDeserialization (line 303) | @Test method testPrimitiveDoubleAutoboxedSerialization (line 309) | @Test method testPrimitiveDoubleAutoboxedDeserialization (line 315) | @Test method testPrimitiveDoubleAutoboxedInASingleElementArraySerialization (line 324) | @Test method testDoubleAsStringRepresentationDeserialization (line 332) | @Test method testDoubleNoFractAsStringRepresentationDeserialization (line 343) | @Test method testDoubleArrayDeserialization (line 354) | @Test method testLargeDoubleDeserialization (line 370) | @Test method testBigDecimalSerialization (line 381) | @Test method testBigDecimalDeserialization (line 388) | @Test method testBigDecimalInASingleElementArraySerialization (line 395) | @Test method testSmallValueForBigDecimalSerialization (line 407) | @Test method testSmallValueForBigDecimalDeserialization (line 414) | @Test method testBigDecimalPreservePrecisionSerialization (line 421) | @Test method testBigDecimalPreservePrecisionDeserialization (line 430) | @Test method testBigDecimalAsStringRepresentationDeserialization (line 439) | @Test method testBigDecimalNoFractAsStringRepresentationDeserialization (line 447) | @Test method testBigIntegerSerialization (line 455) | @Test method testBigIntegerDeserialization (line 461) | @Test method testBigIntegerInASingleElementArraySerialization (line 468) | @Test method testSmallValueForBigIntegerSerialization (line 480) | @Test method testSmallValueForBigIntegerDeserialization (line 487) | @Test method testBadValueForBigIntegerDeserialization (line 494) | @Test method testLazilyParsedNumberSerialization (line 500) | @Test method testLazilyParsedNumberDeserialization (line 507) | @Test method testMoreSpecificSerialization (line 514) | @Test method extractElementFromArray (line 525) | private static String extractElementFromArray(String json) { method testDoubleNaNSerializationNotSupportedByDefault (line 529) | @Test method testDoubleNaNSerialization (line 543) | @Test method testDoubleNaNDeserialization (line 550) | @Test method testFloatNaNSerializationNotSupportedByDefault (line 556) | @Test method testFloatNaNSerialization (line 569) | @Test method testFloatNaNDeserialization (line 576) | @Test method testBigDecimalNaNDeserializationNotSupported (line 582) | @Test method testDoubleInfinitySerializationNotSupportedByDefault (line 588) | @Test method testDoubleInfinitySerialization (line 607) | @Test method testDoubleInfinityDeserialization (line 614) | @Test method testFloatInfinitySerializationNotSupportedByDefault (line 620) | @Test method testFloatInfinitySerialization (line 639) | @Test method testFloatInfinityDeserialization (line 646) | @Test method testBigDecimalInfinityDeserializationNotSupported (line 652) | @Test method testNegativeInfinitySerializationNotSupportedByDefault (line 658) | @Test method testNegativeInfinitySerialization (line 677) | @Test method testNegativeInfinityDeserialization (line 684) | @Test method testNegativeInfinityFloatSerializationNotSupportedByDefault (line 690) | @Test method testNegativeInfinityFloatSerialization (line 709) | @Test method testNegativeInfinityFloatDeserialization (line 716) | @Test method testBigDecimalNegativeInfinityDeserializationNotSupported (line 722) | @Test method testLongAsStringSerialization (line 728) | @Test method testLongAsStringDeserialization (line 739) | @Test method testQuotedStringSerializationAndDeserialization (line 749) | @Test method testUnquotedStringDeserializationFails (line 759) | @Test method testHtmlCharacterSerialization (line 767) | @Test method testDeserializePrimitiveWrapperAsObjectField (line 778) | @Test class ClassWithIntegerField (line 785) | private static class ClassWithIntegerField { method testPrimitiveClassLiteral (line 789) | @Test method testDeserializeJsonObjectAsLongPrimitive (line 796) | @Test method testDeserializeJsonArrayAsLongWrapper (line 801) | @Test method testDeserializeJsonArrayAsInt (line 806) | @Test method testDeserializeJsonObjectAsInteger (line 811) | @Test method testDeserializeJsonObjectAsShortPrimitive (line 816) | @Test method testDeserializeJsonArrayAsShortWrapper (line 821) | @Test method testDeserializeJsonArrayAsDoublePrimitive (line 826) | @Test method testDeserializeJsonObjectAsDoubleWrapper (line 831) | @Test method testDeserializeJsonObjectAsFloatPrimitive (line 836) | @Test method testDeserializeJsonArrayAsFloatWrapper (line 841) | @Test method testDeserializeJsonObjectAsBytePrimitive (line 846) | @Test method testDeserializeJsonArrayAsByteWrapper (line 851) | @Test method testDeserializeJsonObjectAsBooleanPrimitive (line 856) | @Test method testDeserializeJsonArrayAsBooleanWrapper (line 861) | @Test method testDeserializeJsonArrayAsBigDecimal (line 866) | @Test method testDeserializeJsonObjectAsBigDecimal (line 871) | @Test method testDeserializeJsonArrayAsBigInteger (line 876) | @Test method testDeserializeJsonObjectAsBigInteger (line 881) | @Test method testDeserializeJsonArrayAsNumber (line 886) | @Test method testDeserializeJsonObjectAsNumber (line 891) | @Test method testDeserializingDecimalPointValueZeroSucceeds (line 896) | @Test method testDeserializingNonZeroDecimalPointValuesAsIntegerFails (line 901) | @Test method testDeserializingBigDecimalAsIntegerFails (line 909) | @Test method testDeserializingBigIntegerAsInteger (line 919) | @Test method testDeserializingBigIntegerAsLong (line 930) | @Test method testValueVeryCloseToZeroIsZero (line 941) | @Test method testDeserializingBigDecimalAsBigIntegerFails (line 953) | @Test method testDeserializingBigIntegerAsBigDecimal (line 958) | @Test method testStringsAsBooleans (line 966) | @Test FILE: gson/src/test/java/com/google/gson/functional/PrintFormattingTest.java class PrintFormattingTest (line 39) | public class PrintFormattingTest { method setUp (line 43) | @Before method testCompactFormattingLeavesNoWhiteSpace (line 48) | @Test method testJsonObjectWithNullValues (line 60) | @Test method testJsonObjectWithNullValuesSerialized (line 70) | @Test method assertContainsNoWhiteSpace (line 81) | @SuppressWarnings("LoopOverCharArray") FILE: gson/src/test/java/com/google/gson/functional/RawSerializationTest.java class RawSerializationTest (line 32) | public class RawSerializationTest { method setUp (line 36) | @Before method testCollectionOfPrimitives (line 41) | @Test method testCollectionOfObjects (line 48) | @Test method testParameterizedObject (line 55) | @Test method testTwoLevelParameterizedObject (line 67) | @Test method testThreeLevelParameterizedObject (line 79) | @Test class Foo (line 91) | private static class Foo { method Foo (line 95) | Foo(int b) { class Bar (line 100) | private static class Bar { method Bar (line 104) | Bar(T t) { FILE: gson/src/test/java/com/google/gson/functional/ReadersWritersTest.java class ReadersWritersTest (line 47) | public class ReadersWritersTest { method setUp (line 50) | @Before method testWriterForSerialization (line 55) | @Test method testReaderForDeserialization (line 63) | @Test method testTopLevelNullObjectSerializationWithWriter (line 71) | @Test method testTopLevelNullObjectDeserializationWithReader (line 78) | @Test method testTopLevelNullObjectSerializationWithWriterAndSerializeNulls (line 85) | @Test method testTopLevelNullObjectDeserializationWithReaderAndSerializeNulls (line 93) | @Test method testReadWriteTwoStrings (line 101) | @Test method testReadWriteTwoObjects (line 115) | @Test method testTypeMismatchThrowsJsonSyntaxExceptionForStrings (line 132) | @Test method testTypeMismatchThrowsJsonSyntaxExceptionForReaders (line 142) | @Test method testToJsonAppendable (line 158) | @Test FILE: gson/src/test/java/com/google/gson/functional/ReflectionAccessFilterTest.java class ReflectionAccessFilterTest (line 48) | public class ReflectionAccessFilterTest { class ClassExtendingJdkClass (line 50) | private static class ClassExtendingJdkClass extends Reader { method read (line 51) | @Override method close (line 56) | @Override method testBlockInaccessibleJava (line 60) | @Test method testDontBlockAccessibleJava (line 83) | @Test method testBlockInaccessibleJavaExtendingJdkClass (line 105) | @Test method testBlockAllJava (line 126) | @Test method testBlockAllJavaExtendingJdkClass (line 140) | @Test class ClassWithStaticField (line 155) | private static class ClassWithStaticField { method testBlockInaccessibleStaticField (line 160) | @Test class SuperTestClass (line 189) | private static class SuperTestClass {} class SubTestClass (line 191) | private static class SubTestClass extends SuperTestClass { class OtherClass (line 196) | private static class OtherClass { method testDelegation (line 201) | @Test class ClassWithPrivateField (line 245) | private static class ClassWithPrivateField { class ExtendingClassWithPrivateField (line 250) | private static class ExtendingClassWithPrivateField extends ClassWithP... method testAllowForSupertype (line 252) | @Test class ClassWithPrivateNoArgsConstructor (line 299) | private static class ClassWithPrivateNoArgsConstructor { method ClassWithPrivateNoArgsConstructor (line 300) | private ClassWithPrivateNoArgsConstructor() {} method testInaccessibleNoArgsConstructor (line 303) | @Test class ClassWithoutNoArgsConstructor (line 331) | private static class ClassWithoutNoArgsConstructor { method ClassWithoutNoArgsConstructor (line 334) | ClassWithoutNoArgsConstructor(String s) { method testClassWithoutNoArgsConstructor (line 339) | @Test method testBlockAllPartial (line 407) | @Test method testBlockAllCollectionInterface (line 446) | @Test method testBlockAllCollectionImplementation (line 466) | @Test method testBlockInaccessibleInterface (line 486) | @Test method testConstantsToString (line 511) | @Test FILE: gson/src/test/java/com/google/gson/functional/ReflectionAccessTest.java class ReflectionAccessTest (line 39) | public class ReflectionAccessTest { class ClassWithPrivateMembers (line 40) | @SuppressWarnings("unused") method ClassWithPrivateMembers (line 44) | private ClassWithPrivateMembers() {} method loadClassWithDifferentClassLoader (line 47) | private static Class loadClassWithDifferentClassLoader(Class c) ... method testRestrictiveSecurityManager (line 53) | @SuppressWarnings("removal") // java.lang.SecurityManager deprecation ... method assertInaccessibleException (line 114) | private static JsonIOException assertInaccessibleException(String json... method testSerializeInternalImplementationObject (line 144) | @Test method testInaccessibleField (line 162) | @Test FILE: gson/src/test/java/com/google/gson/functional/ReusedTypeVariablesFullyResolveTest.java class ReusedTypeVariablesFullyResolveTest (line 34) | public class ReusedTypeVariablesFullyResolveTest { method setUp (line 38) | @Before method testGenericsPreservation (line 44) | @SuppressWarnings("ConstantConditions") type TestEnum (line 60) | enum TestEnum { class TestEnumSetCollection (line 66) | private static class TestEnumSetCollection extends SetCollection extends BaseCollection... class BaseCollection (line 70) | private static class BaseCollection> { FILE: gson/src/test/java/com/google/gson/functional/RuntimeTypeAdapterFactoryFunctionalTest.java class RuntimeTypeAdapterFactoryFunctionalTest (line 39) | public final class RuntimeTypeAdapterFactoryFunctionalTest { method testSubclassesAutomaticallySerialized (line 47) | @Test class Shape (line 61) | @JsonAdapter(Shape.JsonAdapterFactory.class) method Shape (line 65) | Shape(ShapeType type) { class JsonAdapterFactory (line 69) | private static final class JsonAdapterFactory extends RuntimeTypeAda... method JsonAdapterFactory (line 70) | JsonAdapterFactory() { type ShapeType (line 78) | public enum ShapeType { class Circle (line 83) | private static final class Circle extends Shape { method Circle (line 86) | Circle(int radius) { class Square (line 92) | private static final class Square extends Shape { method Square (line 95) | Square(int side) { class RuntimeTypeAdapterFactory (line 102) | static class RuntimeTypeAdapterFactory implements TypeAdapterFactory { method RuntimeTypeAdapterFactory (line 108) | protected RuntimeTypeAdapterFactory(Class baseType, String typeFi... method of (line 120) | public static RuntimeTypeAdapterFactory of(Class baseType,... method of (line 128) | public static RuntimeTypeAdapterFactory of(Class baseType) { method registerSubtype (line 138) | @CanIgnoreReturnValue method registerSubtype (line 158) | @CanIgnoreReturnValue method create (line 163) | @Override FILE: gson/src/test/java/com/google/gson/functional/SecurityTest.java class SecurityTest (line 32) | public class SecurityTest { method setUp (line 38) | @Before method testNonExecutableJsonSerialization (line 43) | @Test method testNonExecutableJsonDeserialization (line 53) | @Test method testJsonWithNonExectuableTokenSerialization (line 61) | @Test method testJsonWithNonExectuableTokenWithRegularGsonDeserialization (line 72) | @Test method testJsonWithNonExectuableTokenWithConfiguredGsonDeserialization (line 87) | @Test FILE: gson/src/test/java/com/google/gson/functional/SerializedNameTest.java class SerializedNameTest (line 24) | public final class SerializedNameTest { method testFirstNameIsChosenForSerialization (line 27) | @Test method testMultipleNamesDeserializedCorrectly (line 34) | @Test method testMultipleNamesInTheSameString (line 44) | @Test class MyClass (line 51) | private static final class MyClass { method MyClass (line 60) | MyClass(String a, String b) { FILE: gson/src/test/java/com/google/gson/functional/StreamingTypeAdaptersTest.java class StreamingTypeAdaptersTest (line 42) | public final class StreamingTypeAdaptersTest { method testSerialize (line 48) | @Test method testDeserialize (line 60) | @Test method testSerializeNullField (line 71) | @Test method testDeserializeNullField (line 79) | @Test method testSerializeNullObject (line 85) | @Test method testDeserializeNullObject (line 93) | @Test method testSerializeWithCustomTypeAdapter (line 100) | @Test method testDeserializeWithCustomTypeAdapter (line 109) | @Test method usePersonNameAdapter (line 119) | private void usePersonNameAdapter() { method testSerializeMap (line 137) | @Test method testDeserializeMap (line 145) | @Test method testSerialize1dArray (line 153) | @Test method testDeserialize1dArray (line 159) | @Test method testSerialize2dArray (line 166) | @Test method testDeserialize2dArray (line 173) | @Test method testNullSafe (line 181) | @Test method testSerializeRecursive (line 224) | @Test method testFromJsonTree (line 237) | @Test class Truck (line 253) | static class Truck { class Person (line 258) | static class Person { method Person (line 262) | Person(String name, int age) { method equals (line 267) | @Override method hashCode (line 272) | @Override class Node (line 278) | static class Node { method Node (line 283) | Node(String label) { FILE: gson/src/test/java/com/google/gson/functional/StringTest.java class StringTest (line 31) | public class StringTest { method setUp (line 34) | @Before method testStringValueSerialization (line 39) | @Test method testStringValueDeserialization (line 45) | @Test method testSingleQuoteInStringSerialization (line 52) | @Test method testEscapedCtrlNInStringSerialization (line 59) | @Test method testEscapedCtrlNInStringDeserialization (line 66) | @Test method testEscapedCtrlRInStringSerialization (line 73) | @Test method testEscapedCtrlRInStringDeserialization (line 80) | @Test method testEscapedBackslashInStringSerialization (line 87) | @Test method testEscapedBackslashInStringDeserialization (line 94) | @Test method testSingleQuoteInStringDeserialization (line 100) | @Test method testEscapingQuotesInStringSerialization (line 107) | @Test method testEscapingQuotesInStringDeserialization (line 115) | @Test method testStringValueAsSingleElementArraySerialization (line 123) | @Test method testStringWithEscapedSlashDeserialization (line 130) | @Test method testAssignmentCharSerialization (line 142) | @Test method testAssignmentCharDeserialization (line 153) | @Test method testJavascriptKeywordsInStringSerialization (line 164) | @Test method testJavascriptKeywordsInStringDeserialization (line 171) | @Test FILE: gson/src/test/java/com/google/gson/functional/ToNumberPolicyFunctionalTest.java class ToNumberPolicyFunctionalTest (line 35) | public class ToNumberPolicyFunctionalTest { method testDefault (line 36) | @Test method testAsDoubles (line 45) | @Test method testAsLazilyParsedNumbers (line 58) | @Test method testAsLongsOrDoubles (line 71) | @Test method testAsBigDecimals (line 86) | @Test method testAsListOfLongsOrDoubles (line 104) | @Test method testCustomStrategiesCannotAffectConcreteDeclaredNumbers (line 119) | @Test FILE: gson/src/test/java/com/google/gson/functional/TreeTypeAdaptersTest.java class TreeTypeAdaptersTest (line 40) | public class TreeTypeAdaptersTest { method setUp (line 52) | @Before method testSerializeId (line 63) | @Test method testDeserializeId (line 71) | @Test class Id (line 82) | @SuppressWarnings("UnusedTypeParameter") method Id (line 89) | private Id(String value, Type typeOfId) { method getValue (line 94) | String getValue() { class IdTreeTypeAdapter (line 99) | private static final class IdTreeTypeAdapter method deserialize (line 102) | @Override method serialize (line 115) | @Override class Student (line 121) | @SuppressWarnings("unused") method Student (line 126) | private Student() { method Student (line 130) | Student(Id id, String name) { class Course (line 136) | @SuppressWarnings("unused") method Course (line 143) | private Course() { method Course (line 147) | Course( method getId (line 158) | Id> getId() { method getStudents (line 162) | List getStudents() { class Assignment (line 167) | @SuppressWarnings("unused") method Assignment (line 172) | private Assignment() { method Assignment (line 176) | Assignment(Id> id, T data) { class HistoryCourse (line 182) | @SuppressWarnings("unused") FILE: gson/src/test/java/com/google/gson/functional/TypeAdapterPrecedenceTest.java class TypeAdapterPrecedenceTest (line 36) | public final class TypeAdapterPrecedenceTest { method testNonstreamingFollowedByNonstreaming (line 37) | @Test method testStreamingFollowedByStreaming (line 50) | @Test method testSerializeNonstreamingTypeAdapterFollowedByStreamingTypeAdapter (line 61) | @Test method testStreamingFollowedByNonstreaming (line 73) | @Test method testStreamingHierarchicalFollowedByNonstreaming (line 85) | @Test method testStreamingFollowedByNonstreamingHierarchical (line 97) | @Test method testStreamingHierarchicalFollowedByNonstreamingHierarchical (line 109) | @Test method testNonstreamingHierarchicalFollowedByNonstreaming (line 121) | @Test class Foo (line 134) | private static class Foo { method Foo (line 137) | private Foo(String name) { method newSerializer (line 142) | private static JsonSerializer newSerializer(String name) { method newDeserializer (line 151) | private static JsonDeserializer newDeserializer(String name) { method newTypeAdapter (line 160) | private static TypeAdapter newTypeAdapter(String name) { FILE: gson/src/test/java/com/google/gson/functional/TypeAdapterRuntimeTypeWrapperTest.java class TypeAdapterRuntimeTypeWrapperTest (line 35) | public class TypeAdapterRuntimeTypeWrapperTest { class Base (line 36) | private static class Base {} class Subclass (line 38) | private static class Subclass extends Base { class Container (line 43) | private static class Container { class Deserializer (line 48) | private static class Deserializer implements JsonDeserializer { method deserialize (line 49) | @Override method testJsonSerializer (line 59) | @Test method testJsonDeserializer_ReflectiveSerializerDelegate (line 76) | @Test method testJsonDeserializer_CustomSerializerDelegate (line 89) | @Test method testJsonDeserializer_ReflectiveTreeSerializerDelegate (line 119) | @Test method testJsonDeserializer_JsonSerializerDelegate (line 137) | @Test method testJsonDeserializer_SubclassBackwardCompatibility (line 160) | @Test class CyclicBase (line 179) | private static class CyclicBase { class CyclicSub (line 184) | private static class CyclicSub extends CyclicBase { method CyclicSub (line 188) | CyclicSub(int i) { method testGsonFutureAdapter (line 198) | @Test FILE: gson/src/test/java/com/google/gson/functional/TypeHierarchyAdapterTest.java class TypeHierarchyAdapterTest (line 35) | public final class TypeHierarchyAdapterTest { method testTypeHierarchy (line 37) | @Test method testRegisterSuperTypeFirst (line 121) | @Test method testRegisterSubTypeFirstAllowed (line 139) | @Test class ManagerAdapter (line 148) | static class ManagerAdapter implements JsonSerializer, JsonDe... method deserialize (line 149) | @Override method serialize (line 156) | @Override class EmployeeAdapter (line 162) | static class EmployeeAdapter implements JsonSerializer, Json... method serialize (line 163) | @Override method deserialize (line 178) | @Override class Employee (line 209) | static class Employee { method Employee (line 213) | Employee(String userid, long startDate) { method Employee (line 218) | Employee() {} class Manager (line 221) | static class Manager extends Employee { class CEO (line 225) | @SuppressWarnings("MemberName") class Company (line 230) | static class Company { FILE: gson/src/test/java/com/google/gson/functional/TypeVariableTest.java class TypeVariableTest (line 35) | public class TypeVariableTest { method testAdvancedTypeVariables (line 37) | @Test method testTypeVariablesViaTypeParameter (line 53) | @Test method testBasicTypeVariables (line 66) | @Test class Blue (line 77) | @SuppressWarnings({"overrides", "EqualsHashCode"}) method Blue (line 79) | public Blue() { method Blue (line 83) | public Blue(boolean value) { method equals (line 87) | @Override class Red (line 97) | public static class Red { method Red (line 100) | public Red() {} method Red (line 102) | public Red(S redField) { class Foo (line 107) | @SuppressWarnings({"overrides", "EqualsHashCode"}) // for missing hash... method Foo (line 113) | public Foo() {} method Foo (line 115) | public Foo(S sValue, T tValue, Boolean redField) { method equals (line 121) | @Override class Bar (line 135) | public static class Bar extends Foo { method Bar (line 136) | public Bar() { method Bar (line 140) | public Bar(String s, Integer i, boolean b) { FILE: gson/src/test/java/com/google/gson/functional/UncategorizedTest.java class UncategorizedTest (line 41) | public class UncategorizedTest { method setUp (line 45) | @Before method testInvalidJsonDeserializationFails (line 50) | @Test method testObjectEqualButNotSameSerialization (line 60) | @Test method testStaticFieldsAreNotSerialized (line 69) | @Test method testGsonInstanceReusableForSerializationAndDeserialization (line 75) | @Test method testReturningDerivedClassesDuringDeserialization (line 88) | @Test method testTrailingWhitespace (line 106) | @Test type OperationType (line 113) | private enum OperationType { class Base (line 118) | private static class Base { class Derived1 (line 122) | private static class Derived1 extends Base { method Derived1 (line 123) | Derived1() { class Derived2 (line 128) | private static class Derived2 extends Base { method Derived2 (line 129) | Derived2() { class BaseTypeAdapter (line 134) | private static class BaseTypeAdapter implements JsonDeserializer { method deserialize (line 135) | @Override FILE: gson/src/test/java/com/google/gson/functional/VersioningTest.java class VersioningTest (line 33) | public class VersioningTest { method gsonWithVersion (line 39) | private static Gson gsonWithVersion(double version) { method testVersionedUntilSerialization (line 43) | @Test method testVersionedUntilDeserialization (line 59) | @Test method testVersionedClassesSerialization (line 76) | @Test method testVersionedClassesDeserialization (line 84) | @Test method testIgnoreLaterVersionClassSerialization (line 100) | @Test method testIgnoreLaterVersionClassDeserialization (line 106) | @Test method testVersionedGsonWithUnversionedClassesSerialization (line 118) | @Test method testVersionedGsonWithUnversionedClassesDeserialization (line 125) | @Test method testVersionedGsonMixingSinceAndUntilSerialization (line 138) | @Test method testVersionedGsonMixingSinceAndUntilDeserialization (line 158) | @Test class Version1 (line 182) | private static class Version1 { class Version1_1 (line 190) | @SuppressWarnings("MemberName") class Version1_2 (line 196) | @SuppressWarnings("MemberName") class SinceUntilMixing (line 203) | private static class SinceUntilMixing { FILE: gson/src/test/java/com/google/gson/integration/OSGiManifestIT.java class OSGiManifestIT (line 48) | @SuppressWarnings("MemberName") // class name must end with 'IT' for Mav... class ManifestData (line 50) | private static class ManifestData { method ManifestData (line 54) | ManifestData(URL url, Manifest manifest) { method getGsonManifestAttributes (line 63) | @Before method getAttribute (line 76) | private String getAttribute(String name) { method testBundleInformation (line 80) | @Test method testImports (line 90) | @Test method testExports (line 129) | @Test method testRequireCapability (line 154) | @Test method findManifest (line 166) | private ManifestData findManifest(String bundleName) throws IOException { method splitPackages (line 190) | private List splitPackages(String packagesString) { method shortenVersionNumber (line 219) | private String shortenVersionNumber(String versionString, int keepPosi... method increaseVersionNumber (line 234) | private String increaseVersionNumber(String versionString, int positio... FILE: gson/src/test/java/com/google/gson/internal/ConstructorConstructorTest.java class ConstructorConstructorTest (line 40) | public class ConstructorConstructorTest { class AbstractClass (line 44) | private abstract static class AbstractClass { method AbstractClass (line 45) | @SuppressWarnings("unused") type Interface (line 49) | private interface Interface {} method testGet_AbstractClassNoArgConstructor (line 55) | @Test method testGet_Interface (line 69) | @Test class CustomSortedSet (line 82) | @SuppressWarnings("serial") method CustomSortedSet (line 85) | @SuppressWarnings("unused") class CustomSet (line 89) | @SuppressWarnings("serial") method CustomSet (line 92) | @SuppressWarnings("unused") class CustomQueue (line 96) | @SuppressWarnings("serial") method CustomQueue (line 99) | @SuppressWarnings("unused") class CustomList (line 103) | @SuppressWarnings("serial") method CustomList (line 106) | @SuppressWarnings("unused") method testCustomCollectionCreation (line 118) | @Test type CustomCollectionInterface (line 135) | private static interface CustomCollectionInterface extends Collection<... type CustomSetInterface (line 137) | private static interface CustomSetInterface extends Set {} type CustomListInterface (line 139) | private static interface CustomListInterface extends List {} method testCustomCollectionInterfaceCreation (line 141) | @Test method testStringMapCreation (line 159) | @Test type MyEnum (line 190) | private enum MyEnum {} class CustomEnumMap (line 192) | @SuppressWarnings("serial") method CustomEnumMap (line 194) | @SuppressWarnings("unused") class CustomConcurrentNavigableMap (line 200) | @SuppressWarnings("serial") method CustomConcurrentNavigableMap (line 203) | @SuppressWarnings("unused") class CustomConcurrentMap (line 207) | @SuppressWarnings("serial") method CustomConcurrentMap (line 210) | @SuppressWarnings("unused") class CustomSortedMap (line 214) | @SuppressWarnings("serial") method CustomSortedMap (line 217) | @SuppressWarnings("unused") class CustomLinkedHashMap (line 221) | @SuppressWarnings("serial") method CustomLinkedHashMap (line 224) | @SuppressWarnings("unused") method testCustomMapCreation (line 236) | @Test type CustomMapInterface (line 257) | private static interface CustomMapInterface extends Map[] createFeatures(Feature... additionalFea... method suite (line 64) | public static Test suite() { FILE: gson/src/test/java/com/google/gson/internal/LinkedTreeMapTest.java class LinkedTreeMapTest (line 36) | public final class LinkedTreeMapTest { method testIterationOrder (line 38) | @Test method testRemoveRootDoesNotDoubleUnlink (line 48) | @Test method testPutNullKeyFails (line 62) | @Test method testPutNonComparableKeyFails (line 70) | @Test method testPutNullValue (line 77) | @Test method testPutNullValue_Forbidden (line 88) | @Test method testEntrySetValueNull (line 99) | @Test method testEntrySetValueNull_Forbidden (line 115) | @Test method testContainsNonComparableKeyReturnsFalse (line 128) | @Test method testContainsNullKeyIsAlwaysFalse (line 135) | @Test method testPutOverrides (line 143) | @Test method testEmptyStringValues (line 156) | @Test method testLargeSetOfRandomKeys (line 164) | @Test method testClear (line 181) | @Test method testEqualsAndHashCode (line 192) | @Test method testJavaSerialization (line 209) | @Test method testClearInvalidatesExistingIterator (line 224) | @Test method testClearInvalidatesExistingKeySetIterator (line 239) | @Test FILE: gson/src/test/java/com/google/gson/internal/StreamsTest.java class StreamsTest (line 28) | public class StreamsTest { class TestAppendable (line 29) | private static class TestAppendable implements Appendable, Flushable, ... method TestAppendable (line 34) | TestAppendable(Appendable append) { method close (line 38) | @Override method flush (line 43) | @Override method append (line 48) | @Override method append (line 54) | @Override method append (line 60) | @Override method testWriterForAppendable (line 67) | @Test FILE: gson/src/test/java/com/google/gson/internal/UnsafeAllocatorInstantiationTest.java class UnsafeAllocatorInstantiationTest (line 28) | public final class UnsafeAllocatorInstantiationTest { type Interface (line 30) | public interface Interface {} class AbstractClass (line 32) | public abstract static class AbstractClass {} class ConcreteClass (line 34) | public static class ConcreteClass {} method testInterfaceInstantiation (line 37) | @Test method testAbstractClassInstantiation (line 49) | @Test method testConcreteClassInstantiation (line 59) | @Test FILE: gson/src/test/java/com/google/gson/internal/bind/DefaultDateTypeAdapterTest.java class DefaultDateTypeAdapterTest (line 42) | @SuppressWarnings("JavaUtilDate") method testFormattingInEnUs (line 45) | @Test method testFormattingInFr (line 50) | @Test method assertFormattingAlwaysEmitsUsLocale (line 55) | private static void assertFormattingAlwaysEmitsUsLocale(Locale locale) { method testParsingDatesFormattedWithSystemLocale (line 85) | @Test method testParsingDatesFormattedWithUsLocale (line 114) | @Test method testFormatUsesDefaultTimezone (line 139) | @Test method testDateDeserializationISO8601 (line 154) | @Test method testDatePattern (line 164) | @Test method testInvalidDatePattern (line 175) | @Test method testNullValue (line 182) | @Test method testUnexpectedToken (line 189) | @Test method testGsonDateFormat (line 197) | @Test method dateAdapter (line 225) | private static TypeAdapter dateAdapter(TypeAdapterFactory adapte... method assertFormatted (line 231) | private static void assertFormatted(String formattedPattern, TypeAdapt... method assertParsed (line 237) | @SuppressWarnings("UndefinedEquals") method toLiteral (line 247) | private static String toLiteral(String s) { FILE: gson/src/test/java/com/google/gson/internal/bind/Java17ReflectiveTypeAdapterFactoryTest.java class Java17ReflectiveTypeAdapterFactoryTest (line 34) | public class Java17ReflectiveTypeAdapterFactoryTest { method setUp (line 42) | @Before class DummyClass (line 48) | private static class DummyClass { method testCustomAdapterForRecords (line 53) | @Test method testSerializeRecords (line 61) | @Test class PrincipalTypeAdapter (line 82) | private static class PrincipalTypeAdapter extends... method write (line 83) | @Override method read (line 88) | @Override FILE: gson/src/test/java/com/google/gson/internal/bind/JsonElementReaderTest.java class JsonElementReaderTest (line 31) | @SuppressWarnings("resource") method testNumbers (line 34) | @Test method testLenientNansAndInfinities (line 45) | @Test method testStrictNansAndInfinities (line 57) | @Test method testNumbersFromStrings (line 81) | @Test method testStringsFromNumbers (line 92) | @Test method testBooleans (line 101) | @Test method testNulls (line 111) | @Test method testStrings (line 121) | @Test method testArray (line 131) | @Test method testObject (line 148) | @Test method testEmptyArray (line 167) | @Test method testNestedArrays (line 175) | @Test method testNestedObjects (line 189) | @Test method testEmptyObject (line 206) | @Test method testSkipValue (line 214) | @Test method testWrongType (line 228) | @Test method testNextJsonElement (line 259) | @Test method testEarlyClose (line 283) | @Test FILE: gson/src/test/java/com/google/gson/internal/bind/JsonTreeReaderTest.java class JsonTreeReaderTest (line 35) | @SuppressWarnings("resource") method testSkipValue_emptyJsonObject (line 37) | @Test method testSkipValue_filledJsonObject (line 45) | @Test method testSkipValue_name (line 65) | @Test method testSkipValue_afterEndOfDocument (line 77) | @Test method testSkipValue_atArrayEnd (line 90) | @Test method testSkipValue_atObjectEnd (line 99) | @Test method testHasNext_endOfDocument (line 108) | @Test method testCustomJsonElementSubclass (line 116) | @Test method testNestingLimitIgnored (line 155) | @Test method testOverrides (line 190) | @Test FILE: gson/src/test/java/com/google/gson/internal/bind/JsonTreeWriterTest.java class JsonTreeWriterTest (line 33) | @SuppressWarnings("resource") method testArray (line 35) | @Test method testNestedArray (line 46) | @Test method testObject (line 60) | @Test method testNestedObject (line 70) | @Test method testWriteAfterClose (line 87) | @Test method testPrematureClose (line 98) | @Test method testNameAsTopLevelValue (line 107) | @Test method testNameInArray (line 120) | @Test method testTwoNames (line 137) | @Test method testSerializeNullsFalse (line 146) | @Test method testSerializeNullsTrue (line 157) | @Test method testEmptyWriter (line 168) | @Test method testBeginArray (line 174) | @Test method testBeginObject (line 180) | @Test method testValueString (line 186) | @Test method testBoolValue (line 193) | @Test method testBoolMaisValue (line 200) | @Test method testLenientNansAndInfinities (line 207) | @Test method testStrictNansAndInfinities (line 223) | @Test method testStrictBoxedNansAndInfinities (line 236) | @Test method testJsonValue (line 255) | @Test method testOverrides (line 267) | @Test method testEndArrayOnEmptyStackThrows (line 285) | @Test method testEndArrayWithPendingNameThrows (line 291) | @Test method testEndArrayWhenStackTopIsNotArrayThrows (line 299) | @Test FILE: gson/src/test/java/com/google/gson/internal/bind/RecursiveTypesResolveTest.java class RecursiveTypesResolveTest (line 35) | public class RecursiveTypesResolveTest { class Foo1 (line 37) | @SuppressWarnings("unused") class Foo2 (line 42) | @SuppressWarnings("unused") method testRecursiveResolveSimple (line 48) | @Test method testDoubleSupertype (line 56) | @Test method testDoubleSubtype (line 62) | @Test method testSuperSubtype (line 68) | @Test method testSubSupertype (line 74) | @Test class TestType (line 81) | @SuppressWarnings("unused") class TestType2 (line 86) | @SuppressWarnings("unused") method testRecursiveTypeVariablesResolve1 (line 91) | @Test method testRecursiveTypeVariablesResolve12 (line 98) | @Test FILE: gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java class ISO8601UtilsTest (line 31) | @SuppressWarnings("MemberName") // class name method utcTimeZone (line 34) | private static TimeZone utcTimeZone() { method createUtcCalendar (line 38) | private static GregorianCalendar createUtcCalendar() { method testDateFormatString (line 46) | @Test method testDateFormatWithMilliseconds (line 58) | @Test method testDateFormatWithTimezone (line 68) | @Test method testDateParseWithDefaultTimezone (line 78) | @Test method testDateParseInvalidDay (line 87) | @Test method testDateParseInvalidMonth (line 93) | @Test method testDateParseWithTimezone (line 99) | @Test method testDateParseSpecialTimezone (line 110) | @Test method testDateParseInvalidTime (line 121) | @Test FILE: gson/src/test/java/com/google/gson/internal/reflect/Java17ReflectionHelperTest.java class Java17ReflectionHelperTest (line 29) | public class Java17ReflectionHelperTest { method testJava17Record (line 30) | @Test method testJava17RecordAccessors (line 46) | @Test class PrincipalImpl (line 69) | public static class PrincipalImpl implements UserPrincipal, GroupPrinc... method PrincipalImpl (line 72) | public PrincipalImpl(String name) { method getName (line 76) | @Override method equals (line 81) | @Override method hashCode (line 89) | @Override FILE: gson/src/test/java/com/google/gson/internal/sql/SqlTypesGsonTest.java class SqlTypesGsonTest (line 33) | @SuppressWarnings("UnnecessarilyFullyQualified") method setUp (line 39) | @Before method tearDown (line 48) | @After method testNullSerializationAndDeserialization (line 54) | @Test method testNullSerializationAndDeserialization (line 61) | private void testNullSerializationAndDeserialization(Class c) { method testDefaultSqlDateSerialization (line 65) | @Test method testDefaultSqlDateDeserialization (line 72) | @Test method testSqlDateSerialization (line 80) | @Test method testDefaultSqlTimeSerialization (line 98) | @Test method testDefaultSqlTimeDeserialization (line 105) | @Test method testDefaultSqlTimestampSerialization (line 112) | @Test method testDefaultSqlTimestampDeserialization (line 122) | @Test method testTimestampSerialization (line 131) | @Test FILE: gson/src/test/java/com/google/gson/internal/sql/SqlTypesSupportTest.java class SqlTypesSupportTest (line 23) | public class SqlTypesSupportTest { method testSupported (line 24) | @Test FILE: gson/src/test/java/com/google/gson/metrics/PerformanceTest.java class PerformanceTest (line 42) | @SuppressWarnings("SystemOut") // allow System.out because test is for m... method setUp (line 50) | @Before method testDummy (line 55) | @Test method testStringDeserialization (line 60) | @Test method parseLongJson (line 79) | private void parseLongJson(String json) throws JsonParseException { class ExceptionHolder (line 85) | private static class ExceptionHolder { method ExceptionHolder (line 90) | @SuppressWarnings("unused") method ExceptionHolder (line 95) | ExceptionHolder(String message, String stackTrace) { class CollectionEntry (line 101) | @SuppressWarnings("unused") method CollectionEntry (line 107) | private CollectionEntry() { method CollectionEntry (line 111) | CollectionEntry(String name, String value) { method testLargeCollectionSerialization (line 118) | @Test method testLargeCollectionDeserialization (line 130) | @Test method testByteArraySerialization (line 154) | @Test method testByteArrayDeserialization (line 169) | @Test method testSerializeClasses (line 200) | @Test method testDeserializeClasses (line 217) | @Test method testLargeObjectSerializationAndDeserialization (line 231) | @Test method testSerializeExposedClasses (line 250) | @Test method testDeserializeExposedClasses (line 268) | @Test method testLargeGsonMapRoundTrip (line 282) | @Test method buildJsonForClassWithList (line 296) | private static String buildJsonForClassWithList() { class ClassWithList (line 315) | @SuppressWarnings("unused") method ClassWithList (line 320) | ClassWithList() { method ClassWithList (line 324) | ClassWithList(String field) { class ClassWithField (line 329) | @SuppressWarnings("unused") method ClassWithField (line 333) | ClassWithField() { method ClassWithField (line 337) | ClassWithField(String field) { class ClassWithListOfObjects (line 342) | @SuppressWarnings("unused") method ClassWithListOfObjects (line 347) | ClassWithListOfObjects() { method ClassWithListOfObjects (line 351) | ClassWithListOfObjects(String field) { class ClassWithExposedField (line 356) | @SuppressWarnings("unused") method ClassWithExposedField (line 360) | ClassWithExposedField() { method ClassWithExposedField (line 364) | ClassWithExposedField(String field) { FILE: gson/src/test/java/com/google/gson/reflect/TypeTokenTest.java class TypeTokenTest (line 42) | @SuppressWarnings("MultipleTopLevelClasses") method testIsAssignableFromRawTypes (line 52) | @SuppressWarnings({"deprecation"}) method testIsAssignableFromWithTypeParameters (line 61) | @SuppressWarnings({"deprecation"}) method testIsAssignableFromWithBasicWildcards (line 75) | @SuppressWarnings({"deprecation"}) method testIsAssignableFromWithNestedWildcards (line 102) | @SuppressWarnings({"deprecation"}) method testArrayFactory (line 116) | @Test class NestedGeneric (line 131) | static class NestedGeneric {} method testParameterizedFactory (line 133) | @Test method testParameterizedFactory_Invalid (line 182) | @Test class CustomTypeToken (line 301) | private static class CustomTypeToken extends TypeToken {} method testTypeTokenNonAnonymousSubclass (line 303) | @Test method testTypeTokenSubSubClass (line 314) | @Test method createTypeTokenTypeVariable (line 331) | private static void createTypeTokenTypeVariable() { method testTypeTokenTypeVariable (line 344) | @Test method testTypeTokenRaw (line 450) | @SuppressWarnings("rawtypes") class GenericWithBound (line 466) | class GenericWithBound {} class GenericWithMultiBound (line 468) | class GenericWithMultiBound {} class ClassSatisfyingBounds (line 470) | @SuppressWarnings("serial") FILE: gson/src/test/java/com/google/gson/stream/JsonReaderPathTest.java class JsonReaderPathTest (line 34) | @SuppressWarnings("resource") method parameters (line 37) | @Parameterized.Parameters(name = "{0}") method path (line 45) | @Test method objectPath (line 103) | @Test method arrayPath (line 159) | @Test method multipleTopLevelValuesInOneDocument (line 201) | @Test method skipArrayElements (line 217) | @Test method skipArrayEnd (line 227) | @Test method skipObjectNames (line 239) | @Test method skipObjectValues (line 252) | @Test method skipObjectEnd (line 267) | @Test method skipNestedStructures (line 280) | @Test method skipEndOfDocument (line 289) | @Test method arrayOfObjects (line 304) | @Test method arrayOfArrays (line 333) | @Test method objectOfObjects (line 362) | @Test type Factory (line 409) | public enum Factory { method create (line 411) | @Override method create (line 417) | @Override method create (line 424) | abstract JsonReader create(String data); FILE: gson/src/test/java/com/google/gson/stream/JsonReaderTest.java class JsonReaderTest (line 40) | @SuppressWarnings("resource") method testDefaultStrictness (line 43) | @Test method testSetLenientTrue (line 49) | @SuppressWarnings("deprecation") // for JsonReader.setLenient method testSetLenientFalse (line 57) | @SuppressWarnings("deprecation") // for JsonReader.setLenient method testSetStrictness (line 65) | @Test method testSetStrictnessNull (line 72) | @Test method testEscapedNewlineNotAllowedInStrictMode (line 78) | @Test method testEscapedNewlineAllowedInDefaultMode (line 90) | @Test method testStrictModeFailsToParseUnescapedControlCharacter (line 97) | @Test method testStrictModeAllowsOtherControlCharacters (line 130) | @Test method testNonStrictModeParsesUnescapedControlCharacter (line 140) | @Test method testCapitalizedTrueFailWhenStrict (line 147) | @Test method testCapitalizedFalseFailWhenStrict (line 170) | @Test method testCapitalizedNullFailWhenStrict (line 193) | @Test method testReadArray (line 216) | @Test method testReadEmptyArray (line 226) | @Test method testReadObject (line 235) | @Test method testReadEmptyObject (line 247) | @Test method testHasNextEndOfDocument (line 256) | @Test method testSkipArray (line 264) | @Test method testSkipArrayAfterPeek (line 277) | @Test method testSkipTopLevelObject (line 291) | @Test method testSkipObject (line 299) | @Test method testSkipObjectAfterPeek (line 313) | @Test method testSkipObjectName (line 335) | @Test method testSkipObjectNameSingleQuoted (line 345) | @Test method testSkipObjectNameUnquoted (line 356) | @Test method testSkipInteger (line 367) | @Test method testSkipDouble (line 379) | @Test method testSkipValueAfterEndOfDocument (line 391) | @Test method testSkipValueAtArrayEnd (line 404) | @Test method testSkipValueAtObjectEnd (line 413) | @Test method testHelloWorld (line 422) | @Test method testInvalidJsonInput (line 441) | @Test method testNulls (line 459) | @SuppressWarnings("unused") method testEmptyString (line 465) | @Test method testCharacterUnescaping (line 471) | @Test method testReaderDoesNotTreatU2028U2029AsNewline (line 519) | @Test method testEscapeCharacterQuoteInStrictMode (line 546) | @Test method testEscapeCharacterQuoteWithoutStrictMode (line 558) | @Test method testUnescapingInvalidCharacters (line 565) | @Test method testUnescapingTruncatedCharacters (line 578) | @Test method testUnescapingTruncatedSequence (line 591) | @Test method testIntegersWithFractionalPartSpecified (line 604) | @Test method testDoubles (line 613) | @Test method testStrictNonFiniteDoubles (line 658) | @Test method testStrictQuotedNonFiniteDoubles (line 667) | @Test method testLenientNonFiniteDoubles (line 680) | @Test method testLenientQuotedNonFiniteDoubles (line 692) | @Test method testStrictNonFiniteDoublesWithSkipValue (line 704) | @Test method testLongs (line 713) | @Test method testNonAsciiDigits (line 739) | @Test method testNumberWithOctalPrefix (line 766) | @Test method testBooleans (line 791) | @Test method testPeekingUnquotedStringsPrefixedWithBooleans (line 801) | @Test method testMalformedNumbers (line 815) | @Test method assertNotANumber (line 863) | private static void assertNotANumber(String s) throws IOException { method testPeekingUnquotedStringsPrefixedWithIntegers (line 880) | @Test method testPeekLongMinValue (line 891) | @Test method testPeekLongMaxValue (line 900) | @Test method testLongLargerThanMaxLongThatWrapsAround (line 909) | @Test method testLongLargerThanMinLongThatWrapsAround (line 918) | @Test method testNegativeZero (line 928) | @Test method testPeekLargerThanLongMaxValue (line 941) | @Test method testPeekLargerThanLongMinValue (line 955) | @Test method testHighPrecisionLong (line 972) | @Test method testPeekMuchLargerThanLongMinValue (line 982) | @Test method testQuotedNumberWithEscape (line 994) | @Test method testMixedCaseLiterals (line 1003) | @Test method testMissingValue (line 1017) | @Test method testPrematureEndOfInput (line 1030) | @Test method testPrematurelyClosed (line 1039) | @Test method testNextFailuresDoNotAdvance (line 1061) | @Test method testIntegerMismatchFailuresDoNotAdvance (line 1105) | @Test method testStringNullIsNotNull (line 1114) | @Test method testNullLiteralIsNotAString (line 1122) | @Test method testStrictNameValueSeparator (line 1130) | @Test method testLenientNameValueSeparator (line 1147) | @Test method testStrictNameValueSeparatorWithSkipValue (line 1162) | @Test method testCommentsInStringValue (line 1178) | @Test method testStrictComments (line 1198) | @Test method testLenientComments (line 1216) | @Test method testStrictCommentsWithSkipValue (line 1234) | @Test method testStrictUnquotedNames (line 1252) | @Test method testLenientUnquotedNames (line 1260) | @Test method testStrictUnquotedNamesWithSkipValue (line 1268) | @Test method testStrictSingleQuotedNames (line 1276) | @Test method testLenientSingleQuotedNames (line 1284) | @Test method testStrictSingleQuotedNamesWithSkipValue (line 1292) | @Test method testStrictUnquotedStrings (line 1300) | @Test method testStrictUnquotedStringsWithSkipValue (line 1308) | @Test method testLenientUnquotedStrings (line 1316) | @Test method testStrictSingleQuotedStrings (line 1324) | @Test method testLenientSingleQuotedStrings (line 1332) | @Test method testStrictSingleQuotedStringsWithSkipValue (line 1340) | @Test method testStrictSemicolonDelimitedArray (line 1348) | @Test method testLenientSemicolonDelimitedArray (line 1356) | @Test method testStrictSemicolonDelimitedArrayWithSkipValue (line 1365) | @Test method testStrictSemicolonDelimitedNameValuePair (line 1373) | @Test method testLenientSemicolonDelimitedNameValuePair (line 1382) | @Test method testStrictSemicolonDelimitedNameValuePairWithSkipValue (line 1392) | @Test method testStrictUnnecessaryArraySeparators (line 1401) | @Test method testLenientUnnecessaryArraySeparators (line 1429) | @Test method testStrictUnnecessaryArraySeparatorsWithSkipValue (line 1462) | @Test method testStrictMultipleTopLevelValues (line 1487) | @Test method testLenientMultipleTopLevelValues (line 1496) | @Test method testStrictMultipleTopLevelValuesWithSkipValue (line 1508) | @Test method testTopLevelValueTypes (line 1517) | @Test method testTopLevelValueTypeWithSkipValue (line 1545) | @Test method testStrictNonExecutePrefix (line 1552) | @Test method testStrictNonExecutePrefixWithSkipValue (line 1559) | @Test method testLenientNonExecutePrefix (line 1566) | @Test method testLenientNonExecutePrefixWithLeadingWhitespace (line 1575) | @Test method testLenientPartialNonExecutePrefix (line 1584) | @Test method testBomIgnoredAsFirstCharacterOfDocument (line 1597) | @Test method testBomForbiddenAsOtherCharacterInDocument (line 1604) | @Test method testFailWithPosition (line 1612) | @SuppressWarnings("UngroupedOverloads") method testFailWithPositionGreaterThanBufferSize (line 1618) | @Test method testFailWithPositionOverSlashSlashEndOfLineComment (line 1625) | @Test method testFailWithPositionOverHashEndOfLineComment (line 1631) | @Test method testFailWithPositionOverCStyleComment (line 1637) | @Test method testFailWithPositionOverQuotedString (line 1643) | @Test method testFailWithPositionOverUnquotedString (line 1649) | @Test method testFailWithEscapedNewlineCharacter (line 1654) | @Test method testFailWithPositionIsOffsetByBom (line 1659) | @Test method testFailWithPosition (line 1664) | private static void testFailWithPosition(String message, String json) ... method testFailWithPositionDeepPath (line 1692) | @Test method testStrictVeryLongNumber (line 1710) | @Test method testLenientVeryLongNumber (line 1718) | @Test method testVeryLongUnquotedLiteral (line 1729) | @Test method testDeeplyNestedArrays (line 1739) | @Test method testDeeplyNestedObjects (line 1759) | @Test method testNestingLimitDefault (line 1783) | @Test method testNestingLimit (line 1808) | @Test method testStringEndingInSlash (line 1866) | @Test method testDocumentWithCommentEndingInSlash (line 1878) | @Test method testStringWithLeadingSlash (line 1890) | @Test method testUnterminatedObject (line 1902) | @Test method testVeryLongQuotedString (line 1917) | @Test method testVeryLongUnquotedString (line 1929) | @Test method testVeryLongUnterminatedString (line 1942) | @Test method testSkipVeryLongUnquotedString (line 1955) | @Test method testSkipTopLevelUnquotedString (line 1964) | @Test method testSkipVeryLongQuotedString (line 1972) | @Test method testSkipTopLevelQuotedString (line 1980) | @Test method testStringAsNumberWithTruncatedExponent (line 1988) | @Test method testStringAsNumberWithDigitAndNonDigitExponent (line 1996) | @Test method testStringAsNumberWithNonDigitExponent (line 2004) | @Test method testEmptyStringName (line 2012) | @Test method testStrictExtraCommasInMaps (line 2027) | @Test method testLenientExtraCommasInMaps (line 2041) | @Test method repeat (line 2056) | private static String repeat(char c, int count) { method testMalformedDocuments (line 2062) | @Test method testUnterminatedStringFailure (line 2112) | @Test method testReadAcrossBuffers (line 2127) | @Test method assertStrictError (line 2140) | private static void assertStrictError(MalformedJsonException exception... method assertUnexpectedStructureError (line 2150) | private static void assertUnexpectedStructureError( method assertDocument (line 2170) | private static void assertDocument(String document, Object... expectat... method reader (line 2203) | private static Reader reader(String s) { FILE: gson/src/test/java/com/google/gson/stream/JsonWriterTest.java class JsonWriterTest (line 31) | @SuppressWarnings("resource") method testDefaultStrictness (line 34) | @Test method testSetLenientTrue (line 42) | @SuppressWarnings("deprecation") // for JsonWriter.setLenient method testSetLenientFalse (line 52) | @SuppressWarnings("deprecation") // for JsonWriter.setLenient method testSetStrictness (line 62) | @Test method testSetStrictnessNull (line 71) | @Test method testTopLevelValueTypes (line 79) | @Test method testNameAsTopLevelValue (line 112) | @Test method testNameInArray (line 127) | @Test method testTwoNames (line 147) | @Test method testNameWithoutValue (line 157) | @Test method testValueWithoutName (line 167) | @Test method testMultipleTopLevelValues (line 176) | @Test method testMultipleTopLevelValuesStrict (line 187) | @Test method testMultipleTopLevelValuesLenient (line 199) | @Test method testBadNestingObject (line 212) | @Test method testBadNestingArray (line 222) | @Test method testNullName (line 232) | @Test method testNullStringValue (line 240) | @Test method testJsonValue (line 251) | @Test method assertNonFiniteFloatsExceptions (line 264) | private static void assertNonFiniteFloatsExceptions(JsonWriter jsonWri... method testNonFiniteFloats (line 286) | @Test method testNonFiniteFloatsWhenStrict (line 293) | @Test method assertNonFiniteDoublesExceptions (line 301) | private static void assertNonFiniteDoublesExceptions(JsonWriter jsonWr... method testNonFiniteDoubles (line 323) | @Test method testNonFiniteDoublesWhenStrict (line 330) | @Test method assertNonFiniteNumbersExceptions (line 338) | private static void assertNonFiniteNumbersExceptions(JsonWriter jsonWr... method testNonFiniteNumbers (line 371) | @Test method testNonFiniteNumbersWhenStrict (line 378) | @Test method testNonFiniteFloatsWhenLenient (line 386) | @Test method testNonFiniteDoublesWhenLenient (line 399) | @Test method testNonFiniteNumbersWhenLenient (line 412) | @Test method testFloats (line 426) | @Test method testDoubles (line 457) | @Test method testLongs (line 486) | @Test method testNumbers (line 502) | @Test method testNumbersCustomClass (line 522) | @Test method testMalformedNumbers (line 556) | @Test method testBooleans (line 600) | @Test method testBoxedBooleans (line 611) | @Test method testNulls (line 623) | @Test method testStrings (line 633) | @Test method testUnicodeLineBreaksEscaped (line 679) | @Test method testEmptyArray (line 691) | @Test method testEmptyObject (line 700) | @Test method testObjectsInArrays (line 709) | @Test method testArraysInObjects (line 727) | @Test method testDeepNestingArrays (line 746) | @Test method testDeepNestingObjects (line 759) | @Test method testRepeatedName (line 779) | @Test method testPrettyPrintObject (line 791) | @Test method testPrettyPrintArray (line 830) | @Test method testClosedWriterThrowsOnStructure (line 869) | @Test method testClosedWriterThrowsOnName (line 891) | @Test method testClosedWriterThrowsOnValue (line 902) | @Test method testClosedWriterThrowsOnFlush (line 913) | @Test method testWriterCloseIsIdempotent (line 924) | @Test method testSetGetFormattingStyle (line 936) | @Test method testIndentOverwritesFormattingStyle (line 966) | @Test FILE: metrics/src/main/java/com/google/gson/metrics/BagOfPrimitives.java class BagOfPrimitives (line 25) | public class BagOfPrimitives { method BagOfPrimitives (line 32) | public BagOfPrimitives() { method BagOfPrimitives (line 36) | public BagOfPrimitives(long longValue, int intValue, boolean booleanVa... method getIntValue (line 43) | public int getIntValue() { method getExpectedJson (line 47) | public String getExpectedJson() { method hashCode (line 64) | @Override method equals (line 75) | @Override method toString (line 90) | @Override FILE: metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java class BagOfPrimitivesDeserializationBenchmark (line 32) | public class BagOfPrimitivesDeserializationBenchmark { method main (line 37) | public static void main(String[] args) { method setUp (line 41) | @BeforeExperiment method timeBagOfPrimitivesDefault (line 49) | public void timeBagOfPrimitivesDefault(int reps) { method timeBagOfPrimitivesStreaming (line 56) | public void timeBagOfPrimitivesStreaming(int reps) throws IOException { method timeBagOfPrimitivesReflectionStreaming (line 94) | public void timeBagOfPrimitivesReflectionStreaming(int reps) throws Ex... FILE: metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java class CollectionsDeserializationBenchmark (line 34) | public class CollectionsDeserializationBenchmark { method main (line 42) | public static void main(String[] args) { method setUp (line 46) | @BeforeExperiment method timeCollectionsDefault (line 57) | public void timeCollectionsDefault(int reps) { method timeCollectionsStreaming (line 64) | @SuppressWarnings("ModifiedButNotUsed") method timeCollectionsReflectionStreaming (line 108) | @SuppressWarnings("ModifiedButNotUsed") FILE: metrics/src/main/java/com/google/gson/metrics/NonUploadingCaliperRunner.java class NonUploadingCaliperRunner (line 21) | class NonUploadingCaliperRunner { method NonUploadingCaliperRunner (line 22) | private NonUploadingCaliperRunner() {} method concat (line 24) | private static String[] concat(String first, String... others) { method run (line 35) | public static void run(Class c, String[] args) { FILE: metrics/src/main/java/com/google/gson/metrics/ParseBenchmark.java class ParseBenchmark (line 58) | public final class ParseBenchmark { type Document (line 62) | private enum Document { method Document (line 73) | private Document(TypeToken typeToken, TypeReference typeRefere... type Api (line 79) | private enum Api { method newParser (line 81) | @Override method newParser (line 87) | @Override method newParser (line 93) | @Override method newParser (line 99) | @Override method newParser (line 105) | @Override method newParser (line 111) | @Override method newParser (line 117) | abstract Parser newParser(); method setUp (line 123) | @BeforeExperiment method timeParse (line 129) | public void timeParse(int reps) throws Exception { method getResourceFile (line 135) | private static File getResourceFile(String path) throws Exception { method resourceToString (line 147) | private static String resourceToString(String fileName) throws Excepti... method main (line 163) | public static void main(String[] args) throws Exception { type Parser (line 167) | interface Parser { method parse (line 168) | void parse(char[] data, Document document) throws Exception; class GsonStreamParser (line 171) | private static class GsonStreamParser implements Parser { method parse (line 172) | @Override method readToken (line 179) | private static void readToken(JsonReader reader) throws IOException { class GsonSkipParser (line 216) | private static class GsonSkipParser implements Parser { method parse (line 217) | @Override class JacksonStreamParser (line 225) | private static class JacksonStreamParser implements Parser { method parse (line 226) | @Override class GsonDomParser (line 271) | private static class GsonDomParser implements Parser { method parse (line 272) | @Override class GsonBindParser (line 278) | private static class GsonBindParser implements Parser { method parse (line 282) | @Override class JacksonBindParser (line 288) | private static class JacksonBindParser implements Parser { method parse (line 300) | @Override class Tweet (line 306) | @SuppressWarnings("MemberName") class User (line 330) | @SuppressWarnings("MemberName") class Feed (line 374) | static class Feed { method toString (line 386) | @Override class Link (line 407) | static class Link { method toString (line 410) | @Override class Item (line 416) | static class Item { method toString (line 430) | @Override class Content (line 450) | static class Content { method toString (line 453) | @Override class ReaderUser (line 459) | static class ReaderUser { method toString (line 462) | @Override FILE: metrics/src/main/java/com/google/gson/metrics/SerializationBenchmark.java class SerializationBenchmark (line 30) | public class SerializationBenchmark { method main (line 36) | public static void main(String[] args) { method setUp (line 40) | @BeforeExperiment method timeObjectSerialization (line 46) | public void timeObjectSerialization(int reps) { FILE: proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java class ProtoTypeAdapter (line 75) | public class ProtoTypeAdapter implements JsonSerializer, JsonDe... type EnumSerialization (line 77) | public enum EnumSerialization { class Builder (line 88) | public static class Builder { method Builder (line 96) | private Builder( method setEnumSerialization (line 107) | @CanIgnoreReturnValue method setFieldNameSerializationFormat (line 128) | @CanIgnoreReturnValue method addSerializedNameExtension (line 148) | @CanIgnoreReturnValue method addSerializedEnumValueExtension (line 174) | @CanIgnoreReturnValue method setShouldUseJsonNameFieldOption (line 201) | @CanIgnoreReturnValue method build (line 207) | public ProtoTypeAdapter build() { method newBuilder (line 223) | public static Builder newBuilder() { method ProtoTypeAdapter (line 239) | private ProtoTypeAdapter( method serialize (line 254) | @Override method deserialize (line 286) | @Override method getCustSerializedName (line 363) | private String getCustSerializedName(FieldDescriptor fieldDescriptor) { method getCustSerializedEnumValue (line 380) | private String getCustSerializedEnumValue(EnumValueOptions options, St... method getEnumValue (line 393) | private Object getEnumValue(EnumValueDescriptor enumDesc) { method findValueByNameAndExtension (line 409) | private EnumValueDescriptor findValueByNameAndExtension( method getCachedMethod (line 432) | private static Method getCachedMethod( FILE: proto/src/test/java/com/google/gson/protobuf/functional/ProtosWithAnnotationsAndJsonNamesTest.java class ProtosWithAnnotationsAndJsonNamesTest (line 35) | public class ProtosWithAnnotationsAndJsonNamesTest { method testProtoWithAnnotationsAndJsonNames_basicConversions (line 85) | @Test method testProtoWithAnnotationsAndJsonNames_basicRoundTrips (line 94) | @Test method testProtoWithAnnotationsAndJsonNames_unannotatedField (line 103) | @Test method testProtoWithAnnotationsAndJsonNames_fieldWithJsonName (line 124) | @Test method testProtoWithAnnotationsAndJsonNames_fieldWithCustomSerializedName (line 150) | @Test method testProtoWithAnnotationsAndJsonNames_fieldWithJsonNameAndCustomSerializedName (line 176) | @Test method roundTrip (line 194) | private static String roundTrip(Gson jsonToProto, Gson protoToJson, St... method roundTrip (line 198) | private static ProtoWithAnnotationsAndJsonNames roundTrip( FILE: proto/src/test/java/com/google/gson/protobuf/functional/ProtosWithAnnotationsTest.java class ProtosWithAnnotationsTest (line 40) | public class ProtosWithAnnotationsTest { method setUp (line 45) | @Before method testProtoWithAnnotations_deserialize (line 73) | @Test method testProtoWithAnnotations_deserializeUnknownEnumValue (line 158) | @Test method testProtoWithAnnotations_deserializeUnrecognizedEnumValue (line 165) | @Test method testProtoWithAnnotations_deserializeWithEnumNumbers (line 173) | @Test method testProtoWithAnnotations_deserializeUnrecognizedEnumNumber (line 188) | @Test method testProtoWithAnnotations_serialize (line 198) | @Test FILE: proto/src/test/java/com/google/gson/protobuf/functional/ProtosWithComplexAndRepeatedFieldsTest.java class ProtosWithComplexAndRepeatedFieldsTest (line 38) | public class ProtosWithComplexAndRepeatedFieldsTest { method setUp (line 42) | @Before method testSerializeRepeatedFields (line 63) | @Test method testDeserializeRepeatedFieldsProto (line 76) | @Test method testSerializeDifferentCaseFormat (line 86) | @Test method testDeserializeDifferentCaseFormat (line 99) | @Test FILE: proto/src/test/java/com/google/gson/protobuf/functional/ProtosWithPrimitiveTypesTest.java class ProtosWithPrimitiveTypesTest (line 29) | public class ProtosWithPrimitiveTypesTest { method setUp (line 32) | @Before method testSerializeEmptyProto (line 44) | @Test method testDeserializeEmptyProto (line 51) | @Test method testSerializeProto (line 58) | @Test method testDeserializeProto (line 65) | @Test method testDeserializeWithExplicitNullValue (line 72) | @Test FILE: test-graal-native-image/src/test/java/com/google/gson/native_test/Java17RecordReflectionTest.java class Java17RecordReflectionTest (line 30) | class Java17RecordReflectionTest { method testPublicRecord (line 33) | @Test method testPrivateRecord (line 43) | @Test method testLocalRecord (line 50) | @Test method testLocalRecordSerialization (line 59) | @Test method testSerializedName (line 69) | @Test method testCustomConstructor (line 86) | @Test method i (line 94) | @SuppressWarnings("UnusedMethod") method testCustomAccessor (line 101) | @Test class CustomAdapter (line 109) | private static class CustomAdapter extends TypeAdapter { method read (line 110) | @Override method write (line 115) | @Override method read (line 134) | @Override method write (line 139) | @Override method testCustomFieldAdapter (line 146) | @Test method testCustomAdapter (line 157) | @Test FILE: test-graal-native-image/src/test/java/com/google/gson/native_test/ReflectionTest.java class ReflectionTest (line 34) | class ReflectionTest { class ClassWithDefaultConstructor (line 35) | private static class ClassWithDefaultConstructor { method testDefaultConstructor (line 39) | @Test class ClassWithCustomDefaultConstructor (line 47) | private static class ClassWithCustomDefaultConstructor { method ClassWithCustomDefaultConstructor (line 50) | private ClassWithCustomDefaultConstructor() { method testCustomDefaultConstructor (line 55) | @Test class ClassWithoutDefaultConstructor (line 67) | private static class ClassWithoutDefaultConstructor { method ClassWithoutDefaultConstructor (line 71) | private ClassWithoutDefaultConstructor(int i) { method testClassWithoutDefaultConstructor (line 84) | @Test method testInstanceCreator (line 98) | @Test class ClassWithFinalField (line 121) | private static class ClassWithFinalField { method nonConstant (line 125) | private static int nonConstant() { method testFinalField (line 130) | @Test class ClassWithSerializedName (line 141) | private static class ClassWithSerializedName { method testSerializedName (line 146) | @Test class ClassWithCustomClassAdapter (line 157) | @JsonAdapter(ClassWithCustomClassAdapter.CustomAdapter.class) class CustomAdapter (line 159) | private static class CustomAdapter extends TypeAdapter { method read (line 189) | @Override method write (line 194) | @Override method ClassWithCustomFieldAdapter (line 203) | private ClassWithCustomFieldAdapter(int i) { method ClassWithCustomFieldAdapter (line 207) | private ClassWithCustomFieldAdapter() { method testCustomFieldAdapter (line 212) | @Test class ClassWithRegisteredAdapter (line 221) | private static class ClassWithRegisteredAdapter { method ClassWithRegisteredAdapter (line 224) | private ClassWithRegisteredAdapter(int i) { method testCustomAdapter (line 229) | @Test method testGenerics (line 255) | @Test FILE: test-jpms/src/test/java/com/google/gson/jpms_test/ExportedPackagesTest.java class ExportedPackagesTest (line 39) | public class ExportedPackagesTest { method testMainPackage (line 41) | @Test method testAnnotationsPackage (line 48) | @Test method testReflectPackage (line 62) | @Test method testStreamPackage (line 69) | @Test method testReflectionInternalField (line 76) | @Test method testInaccessiblePackage (line 91) | @Test FILE: test-jpms/src/test/java/com/google/gson/jpms_test/ModuleTest.java class ModuleTest (line 35) | public class ModuleTest { method testOwnModule (line 36) | @Test method testGsonModule (line 42) | @Test method filterImplicitRequires (line 89) | private static Stream filterImplicitRequires(Set r... method getModuleDependencies (line 97) | private static Set getModuleDependencies(Set require... method getTransitiveModuleDependencies (line 101) | private static Set getTransitiveModuleDependencies(Set getOptionalModuleDependencies(Set... FILE: test-jpms/src/test/java/com/google/gson/jpms_test/ReflectionInaccessibleTest.java class ReflectionInaccessibleTest (line 30) | public class ReflectionInaccessibleTest { class MyClass (line 31) | private static class MyClass { method testDeserialization (line 36) | @Test method testSerialization (line 50) | @Test FILE: test-jpms/src/test/java/com/google/gson/jpms_test/opened/ReflectionTest.java class ReflectionTest (line 29) | public class ReflectionTest { class MyClass (line 30) | private static class MyClass { method testDeserialization (line 34) | @Test method testSerialization (line 41) | @Test FILE: test-shrinker/src/main/java/com/example/ClassWithAdapter.java class ClassWithAdapter (line 9) | @JsonAdapter(ClassWithAdapter.Adapter.class) class Adapter (line 11) | static class Adapter extends TypeAdapter { method read (line 12) | @Override method write (line 25) | @Override method ClassWithAdapter (line 36) | public ClassWithAdapter(int i) { method toString (line 40) | @Override FILE: test-shrinker/src/main/java/com/example/ClassWithExposeAnnotation.java class ClassWithExposeAnnotation (line 6) | public class ClassWithExposeAnnotation { FILE: test-shrinker/src/main/java/com/example/ClassWithHasArgsConstructor.java class ClassWithHasArgsConstructor (line 6) | public class ClassWithHasArgsConstructor { method ClassWithHasArgsConstructor (line 11) | public ClassWithHasArgsConstructor(int i) { FILE: test-shrinker/src/main/java/com/example/ClassWithJsonAdapterAnnotation.java class ClassWithJsonAdapterAnnotation (line 22) | public class ClassWithJsonAdapterAnnotation { method ClassWithJsonAdapterAnnotation (line 44) | public ClassWithJsonAdapterAnnotation() {} method ClassWithJsonAdapterAnnotation (line 49) | public ClassWithJsonAdapterAnnotation(int i1, int i2, int i3, int i4) { method toString (line 58) | @Override class Adapter (line 71) | static class Adapter extends TypeAdapter { method read (line 72) | @Override method write (line 77) | @Override class Factory (line 83) | static class Factory implements TypeAdapterFactory { method create (line 84) | @Override class Serializer (line 106) | static class Serializer implements JsonSerializer { method serialize (line 107) | @Override class Deserializer (line 113) | static class Deserializer implements JsonDeserializer { method deserialize (line 114) | @Override class DummyClass (line 124) | static class DummyClass { method DummyClass (line 128) | DummyClass(String s) { method toString (line 132) | @Override FILE: test-shrinker/src/main/java/com/example/ClassWithNamedFields.java class ClassWithNamedFields (line 3) | public class ClassWithNamedFields { method ClassWithNamedFields (line 7) | public ClassWithNamedFields(int i) { FILE: test-shrinker/src/main/java/com/example/ClassWithNoArgsConstructor.java class ClassWithNoArgsConstructor (line 6) | public class ClassWithNoArgsConstructor { method ClassWithNoArgsConstructor (line 10) | public ClassWithNoArgsConstructor() { FILE: test-shrinker/src/main/java/com/example/ClassWithSerializedName.java class ClassWithSerializedName (line 5) | public class ClassWithSerializedName { method ClassWithSerializedName (line 12) | public ClassWithSerializedName(int i) { FILE: test-shrinker/src/main/java/com/example/ClassWithUnreferencedHasArgsConstructor.java class ClassWithUnreferencedHasArgsConstructor (line 10) | public class ClassWithUnreferencedHasArgsConstructor { method ClassWithUnreferencedHasArgsConstructor (line 15) | public ClassWithUnreferencedHasArgsConstructor(int i) { FILE: test-shrinker/src/main/java/com/example/ClassWithUnreferencedNoArgsConstructor.java class ClassWithUnreferencedNoArgsConstructor (line 10) | public class ClassWithUnreferencedNoArgsConstructor { method ClassWithUnreferencedNoArgsConstructor (line 14) | public ClassWithUnreferencedNoArgsConstructor() { FILE: test-shrinker/src/main/java/com/example/ClassWithVersionAnnotations.java class ClassWithVersionAnnotations (line 7) | public class ClassWithVersionAnnotations { FILE: test-shrinker/src/main/java/com/example/EnumClass.java type EnumClass (line 3) | public enum EnumClass { FILE: test-shrinker/src/main/java/com/example/EnumClassWithSerializedName.java type EnumClassWithSerializedName (line 5) | public enum EnumClassWithSerializedName { FILE: test-shrinker/src/main/java/com/example/GenericClasses.java class GenericClasses (line 10) | public class GenericClasses { method GenericClasses (line 11) | private GenericClasses() {} class GenericClass (line 13) | static class GenericClass { method toString (line 17) | @Override class UsingGenericClass (line 23) | static class UsingGenericClass { method toString (line 27) | @Override class GenericUsingGenericClass (line 33) | static class GenericUsingGenericClass { method toString (line 37) | @Override class DummyClass (line 43) | @JsonAdapter(DummyClass.Adapter.class) method DummyClass (line 47) | DummyClass(String s) { method toString (line 51) | @Override class Adapter (line 56) | static class Adapter extends TypeAdapter { method read (line 57) | @Override method write (line 62) | @Override FILE: test-shrinker/src/main/java/com/example/InterfaceWithImplementation.java type InterfaceWithImplementation (line 6) | public interface InterfaceWithImplementation { method getValue (line 7) | String getValue(); class Implementation (line 10) | public static class Implementation implements InterfaceWithImplementat... method Implementation (line 11) | public Implementation() {} method getValue (line 16) | @Override FILE: test-shrinker/src/main/java/com/example/Main.java class Main (line 17) | public class Main { method Main (line 18) | private Main() {} method runTests (line 28) | public static void runTests(BiConsumer outputConsumer) { method testTypeTokenWriteRead (line 60) | private static void testTypeTokenWriteRead( method toJson (line 84) | private static String toJson(Gson gson, Object obj) { method fromJson (line 92) | private static T fromJson(Gson gson, String json, Class c) { method testNamedFields (line 96) | private static void testNamedFields(BiConsumer outputC... method testSerializedName (line 110) | private static void testSerializedName(BiConsumer outp... method testConstructorNoArgs (line 126) | private static void testConstructorNoArgs(BiConsumer o... method testConstructorHasArgs (line 150) | private static void testConstructorHasArgs(BiConsumer ... method testUnreferencedConstructorNoArgs (line 168) | private static void testUnreferencedConstructorNoArgs(BiConsumer outputC... method testEnum (line 228) | private static void testEnum(BiConsumer outputConsumer) { method testEnumSerializedName (line 237) | private static void testEnumSerializedName(BiConsumer ... method testExposeAnnotation (line 249) | private static void testExposeAnnotation(BiConsumer ou... method testVersionAnnotations (line 255) | private static void testVersionAnnotations(BiConsumer ... method testJsonAdapterAnnotation (line 263) | private static void testJsonAdapterAnnotation(BiConsumer outp... method testDeserializingInterfaceImpl (line 296) | private static void testDeserializingInterfaceImpl(BiConsumer T same(T t) { FILE: test-shrinker/src/main/java/com/example/UnusedClass.java class UnusedClass (line 11) | public class UnusedClass { method UnusedClass (line 12) | public UnusedClass() {} FILE: test-shrinker/src/test/java/com/google/gson/it/ShrinkingIT.java class ShrinkingIT (line 43) | @SuppressWarnings("MemberName") // class name must end with 'IT' for Mav... method jarsToTest (line 50) | @Parameters(name = "{index}: {0}") method verifyJarExists (line 57) | @Before method isTestingProGuard (line 65) | private boolean isTestingProGuard() { type TestAction (line 69) | @FunctionalInterface method run (line 71) | void run(Class c) throws Exception; method runTest (line 74) | private void runTest(String className, TestAction testAction) throws E... method test (line 88) | @Test method testNoSerializedName_NoArgsConstructor (line 231) | @Test method testNoSerializedName_NoArgsConstructorNoJdkUnsafe (line 256) | @Test method testNoSerializedName_HasArgsConstructor (line 283) | @Test method testUnusedClassRemoved (line 308) | @Test