Skip to content

Commit 3bfc022

Browse files
committed
doc updates
1 parent fb3fb8e commit 3bfc022

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

Documentation.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,7 @@ public interface MyHelper {
560560
*
561561
* A method may specify a block chain by annotating any number
562562
* of parameters with `@BlockChain`. The parameter **must** be of
563-
* type `AtomicReference`, and the annotation must include the
564-
* type of the block, matching the generic signature of the reference.
563+
* type `AtomicReference`.
565564
*
566565
* The helper will be introspected like the current type, and the
567566
* chain will be constructed moving from the leftmost parameter
@@ -583,15 +582,14 @@ interface MyHelper {
583582

584583
@Last
585584
String startBlock(
586-
int paramA, @BlockChain(Alpha.class) AtomicReference<Alpha> helperA,
587-
int paramB, @BlockChain(Beta.class) AtomicReference<Beta> helperB
585+
int paramA, @BlockChain AtomicReference<Alpha> helperA,
586+
int paramB, @BlockChain AtomicReference<Beta> helperB
588587
);
589588
}
590589

591590
// Marks a method parameter as a container for another block's helper.
592-
// The types must match the generic signature of the `AtomicReference` object,
593-
// or else an error will be thrown at runtime.
594-
@BlockChain(Class<?> type)
591+
// The parameter **must** be of type `AtomicReference`.
592+
@BlockChain
595593

596594

597595

0 commit comments

Comments
 (0)