diff --git a/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/InjectMock.java b/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/InjectMock.java index 82aad0650c8bc..d5d71839015cd 100644 --- a/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/InjectMock.java +++ b/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/InjectMock.java @@ -15,7 +15,7 @@ /** * If true, then Quarkus will change the scope of the target {@code Singleton} bean to {@code ApplicationScoped} - * to make the mockable. + * to make it mockable. * This is an advanced setting and should only be used if you don't rely on the differences between {@code Singleton} * and {@code ApplicationScoped} beans (for example it is invalid to read fields of {@code ApplicationScoped} beans * as a proxy stands in place of the actual implementation) diff --git a/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/SingletonToApplicationScopedTestBuildChainCustomizerProducer.java b/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/SingletonToApplicationScopedTestBuildChainCustomizerProducer.java index d9dbea6c994f5..9906fc368dec3 100644 --- a/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/SingletonToApplicationScopedTestBuildChainCustomizerProducer.java +++ b/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/SingletonToApplicationScopedTestBuildChainCustomizerProducer.java @@ -35,7 +35,7 @@ public class SingletonToApplicationScopedTestBuildChainCustomizerProducer implem @Override public Consumer produce(Index testClassesIndex) { - return new Consumer() { + return new Consumer<>() { @Override public void accept(BuildChainBuilder buildChainBuilder) {