Skip to content

Commit

Permalink
Improve DefaultBean javadoc a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Jul 1, 2022
1 parent 13a652a commit 1a051ca
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -24,7 +24,8 @@
* }
* </pre>
*
* 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:
*
Expand All @@ -39,7 +40,7 @@
* }
* </pre>
*
* 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 })
Expand Down

0 comments on commit 1a051ca

Please sign in to comment.