We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20f563d commit 912d5e0Copy full SHA for 912d5e0
src/test/java/com/meilisearch/integration/ClientTest.java
@@ -321,9 +321,7 @@ public void testTransientFieldExclusion() throws MeilisearchException {
321
new GsonBuilder().excludeFieldsWithModifiers(Modifier.STATIC).create();
322
323
// TODO: Throws StackOverflowError on JDK 1.8, but InaccessibleObjectException on JDK9+
324
- Assertions.assertThrows(
325
- Exception.class,
326
- () -> gsonWithTransient.toJson(test)); // accommodating upgrade to jdk 11
+ Assertions.assertThrows(StackOverflowError.class, () -> gsonWithTransient.toJson(test));
327
Assertions.assertDoesNotThrow(() -> gson.toJson(test));
328
}
329
0 commit comments