From 1a051cac04b050c4209fd585c1447977e9b87f3a Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 1 Jul 2022 13:42:36 +0200 Subject: [PATCH] Improve DefaultBean javadoc a bit --- .../runtime/src/main/java/io/quarkus/arc/DefaultBean.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/DefaultBean.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/DefaultBean.java index e1ea1bf69ae04..73e601f9e7629 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/DefaultBean.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/DefaultBean.java @@ -7,7 +7,7 @@ /** * If a bean is annotated with this annotation, it means that the bean will only be used - * as a default bean if no other bean of this type is configured. If other another bean is configured + * as a default bean if no other bean of this type is configured. If another bean is configured * however, the default bean is not used. * * Here is an example: @@ -24,7 +24,8 @@ * } * * - * If this code is used and MyBean is not defined anywhere else, then the result of create() is used in all injection points. + * If this code is used and MyBean is not defined anywhere else, then the result of {@code create()} is used in all injection + * points. * * However, if there is another piece of configuration code that looks like: * @@ -39,7 +40,7 @@ * } * * - * Then the result of override will be used as a MyBean in all injection points + * Then the result of {@code override()} will be used as MyBean in all injection points. */ @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.METHOD, ElementType.TYPE, ElementType.FIELD })