From 410d1b766c9b22d24fc1e665c8429cf471aa007f Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Sat, 29 Jul 2023 15:36:47 +0200 Subject: [PATCH] Minor documentation changes --- Troubleshooting.md | 2 +- .../bind/UnsupportedJsonLibraryTypeAdapterFactory.java | 6 +++--- .../java/com/google/gson/functional/JsonOrgInteropTest.java | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Troubleshooting.md b/Troubleshooting.md index 0bf88ffbce..c656857fa7 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -363,7 +363,7 @@ If you cannot switch the classes you are using, see the library-specific solutio -**Important:** Verify carefully that these `TypeAdapterFactory` classes work as expected for your use case and produce the desired JSON data or parse the JSON data without issues. There might be corner cases where they behave slightly differently than Gson's reflection-based adapter, respectively behave differently than the other JSON library would behave. +**Important:** Verify carefully that these solutions work as expected for your use case and produce the desired JSON data or parse the JSON data without issues. There might be corner cases where they behave slightly differently than Gson's reflection-based adapter, respectively behave differently than the other JSON library would behave. ## Android app not working in Release mode; random property names diff --git a/gson/src/main/java/com/google/gson/internal/bind/UnsupportedJsonLibraryTypeAdapterFactory.java b/gson/src/main/java/com/google/gson/internal/bind/UnsupportedJsonLibraryTypeAdapterFactory.java index f4c27a9f1c..0a08cb79e4 100644 --- a/gson/src/main/java/com/google/gson/internal/bind/UnsupportedJsonLibraryTypeAdapterFactory.java +++ b/gson/src/main/java/com/google/gson/internal/bind/UnsupportedJsonLibraryTypeAdapterFactory.java @@ -32,9 +32,9 @@ * {@code TypeAdapterFactory} which throws an exception when trying to serialize or * deserialize unsupported classes from third-party JSON libraries. * - *

This is mainly intended as help for users who accidentally mix Gson and non-Gson - * code and are then surprised by unexpected JSON data or issues when trying to - * deserialize the JSON data. + *

This is mainly intended as help for users who accidentally mix Gson and other + * JSON libraries and are then surprised by unexpected JSON data or issues when trying + * to deserialize the JSON data. */ public class UnsupportedJsonLibraryTypeAdapterFactory implements TypeAdapterFactory { public static final UnsupportedJsonLibraryTypeAdapterFactory INSTANCE = new UnsupportedJsonLibraryTypeAdapterFactory(); diff --git a/gson/src/test/java/com/google/gson/functional/JsonOrgInteropTest.java b/gson/src/test/java/com/google/gson/functional/JsonOrgInteropTest.java index 9b96e9a2a7..e9010060d6 100644 --- a/gson/src/test/java/com/google/gson/functional/JsonOrgInteropTest.java +++ b/gson/src/test/java/com/google/gson/functional/JsonOrgInteropTest.java @@ -113,7 +113,6 @@ public String toString() { } private abstract static class JsonOrgBaseSubject extends Subject { - protected JsonOrgBaseSubject(FailureMetadata metadata, @Nullable Object actual) { super(metadata, actual); }