Skip to content

Commit 595f9bf

Browse files
committed
Polish attribute alias examples in "what's new"
1 parent 110ccaa commit 595f9bf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/asciidoc/whats-new.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,13 +427,13 @@ method has been added.
427427
[subs="verbatim,quotes"]
428428
----
429429
public @interface ContextConfiguration {
430-
430+
431431
@AliasFor(attribute = "locations")
432432
String[] value() default {};
433-
433+
434434
@AliasFor(attribute = "value")
435435
String[] locations() default {};
436-
436+
437437
// ...
438438
}
439439
----
@@ -442,17 +442,17 @@ public @interface ContextConfiguration {
442442
over exactly which attributes are overridden within an annotation
443443
hierarchy. In fact, it is now possible to declare an alias for the
444444
`value` attribute of a meta-annotation.
445-
** For example, one can now develop a composed annotation with a custom
445+
** For example, one can now develop a composed annotation with a custom
446446
attribute override as follows.
447447
[source,java,indent=0]
448448
[subs="verbatim,quotes"]
449449
----
450450
@ContextConfiguration
451451
public @interface MyTestConfig {
452-
453-
@AliasFor(annotation = ContextConfiguration.class, attribute = "locations")
452+
453+
@AliasFor(annotation = ContextConfiguration.class, attribute = "value")
454454
String[] xmlFiles();
455-
455+
456456
// ...
457457
}
458458
----

0 commit comments

Comments
 (0)