Fix formatting errors

See gh-28212
This commit is contained in:
Sébastien Deleuze 2022-03-22 10:56:37 +01:00
parent 1ffc96be8c
commit e7e843cae2
1 changed files with 37 additions and 37 deletions

View File

@ -121,7 +121,7 @@ public class ReflectionHintsSerializerTests {
void queriedMethods() throws JSONException { void queriedMethods() throws JSONException {
ReflectionHints hints = new ReflectionHints(); ReflectionHints hints = new ReflectionHints();
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)), hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
(b) -> b.withMode(ExecutableMode.INTROSPECT))); b -> b.withMode(ExecutableMode.INTROSPECT)));
assertEquals(""" assertEquals("""
[ [
@ -142,7 +142,7 @@ public class ReflectionHintsSerializerTests {
void methods() throws JSONException { void methods() throws JSONException {
ReflectionHints hints = new ReflectionHints(); ReflectionHints hints = new ReflectionHints();
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)), hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
(b) -> b.withMode(ExecutableMode.INVOKE))); b -> b.withMode(ExecutableMode.INVOKE)));
assertEquals(""" assertEquals("""
[ [
@ -162,9 +162,9 @@ public class ReflectionHintsSerializerTests {
void methodAndQueriedMethods() throws JSONException { void methodAndQueriedMethods() throws JSONException {
ReflectionHints hints = new ReflectionHints(); ReflectionHints hints = new ReflectionHints();
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)), hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
(b) -> b.withMode(ExecutableMode.INVOKE))); b -> b.withMode(ExecutableMode.INVOKE)));
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)), hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
(b) -> b.withMode(ExecutableMode.INTROSPECT))); b -> b.withMode(ExecutableMode.INTROSPECT)));
assertEquals(""" assertEquals("""
[ [