@@ -357,9 +357,9 @@ void testWithArgumentsSource(String argument) {
357357 }
358358
359359 // end::ArgumentsSource_example[]
360- static
360+ public
361361 // tag::ArgumentsProvider_example[]
362- public class MyArgumentsProvider implements ArgumentsProvider {
362+ static class MyArgumentsProvider implements ArgumentsProvider {
363363
364364 @ Override
365365 public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
@@ -375,9 +375,9 @@ void testWithArgumentsSourceWithConstructorInjection(String argument) {
375375 assertNotNull (argument );
376376 }
377377
378- static
378+ public
379379 // tag::ArgumentsProviderWithConstructorInjection_example[]
380- public class MyArgumentsProviderWithConstructorInjection implements ArgumentsProvider {
380+ static class MyArgumentsProviderWithConstructorInjection implements ArgumentsProvider {
381381
382382 private final TestInfo testInfo ;
383383
@@ -427,9 +427,9 @@ void testWithImplicitFallbackArgumentConversion(Book book) {
427427 }
428428
429429 // end::implicit_fallback_conversion_example[]
430- static
430+ public
431431 // tag::implicit_fallback_conversion_example_Book[]
432- public class Book {
432+ static class Book {
433433
434434 private final String title ;
435435
@@ -458,10 +458,10 @@ void testWithExplicitArgumentConversion(
458458 }
459459
460460 // end::explicit_conversion_example[]
461- static
461+ public
462462 @ SuppressWarnings ({ "NullableProblems" , "NullAway" })
463463 // tag::explicit_conversion_example_ToStringArgumentConverter[]
464- public class ToStringArgumentConverter extends SimpleArgumentConverter {
464+ static class ToStringArgumentConverter extends SimpleArgumentConverter {
465465
466466 @ Override
467467 protected Object convert (Object source , Class <?> targetType ) {
@@ -474,10 +474,10 @@ protected Object convert(Object source, Class<?> targetType) {
474474 }
475475 // end::explicit_conversion_example_ToStringArgumentConverter[]
476476
477- static
477+ public
478478 @ SuppressWarnings ({ "NullableProblems" , "NullAway" , "ConstantValue" })
479479 // tag::explicit_conversion_example_TypedArgumentConverter[]
480- public class ToLengthArgumentConverter extends TypedArgumentConverter <String , Integer > {
480+ static class ToLengthArgumentConverter extends TypedArgumentConverter <String , Integer > {
481481
482482 protected ToLengthArgumentConverter () {
483483 super (String .class , Integer .class );
@@ -516,7 +516,7 @@ void testWithArgumentsAccessor(ArgumentsAccessor arguments) {
516516 arguments .get (2 , Gender .class ),
517517 arguments .get (3 , LocalDate .class ));
518518
519- if (person .getFirstName (). equals ( "Jane" )) {
519+ if ("Jane" . equals ( person .getFirstName ())) {
520520 assertEquals (Gender .F , person .getGender ());
521521 }
522522 else {
@@ -540,9 +540,9 @@ void testWithArgumentsAggregator(@AggregateWith(PersonAggregator.class) Person p
540540 }
541541
542542 // end::ArgumentsAggregator_example[]
543- static
543+ public
544544 // tag::ArgumentsAggregator_example_PersonAggregator[]
545- public class PersonAggregator extends SimpleArgumentsAggregator {
545+ static class PersonAggregator extends SimpleArgumentsAggregator {
546546 @ Override
547547 protected Person aggregateArguments (ArgumentsAccessor arguments , Class <?> targetType ,
548548 AnnotatedElementContext context , int parameterIndex ) {
0 commit comments