Skip to content

Commit

Permalink
Merge pull request #12276 from xstefank/cdi-guide-fix
Browse files Browse the repository at this point in the history
Fix errors in the CDI guide
  • Loading branch information
mkouba authored Sep 23, 2020
2 parents 65559ff + 6298bac commit 2a45739
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/main/asciidoc/cdi.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Intializers may accept multiple parameters and don't have to follow the JavaBean
@ApplicationScoped
public class Translator {
private final TranslatorHelper helper
private final TranslatorHelper helper;
Translator(TranslatorHelper helper) { <1>
this.helper = helper;
Expand Down Expand Up @@ -341,9 +341,9 @@ public class LoggingInterceptor {
Logger logger;

@AroundInvoke <5>
Objec logInvocation(InvocationContext context) {
Object logInvocation(InvocationContext context) {
// ...log before
Objec ret = context.proceed(); <6>
Object ret = context.proceed(); <6>
// ...log after
return ret;
}
Expand Down Expand Up @@ -377,7 +377,7 @@ class TaskCompleted {
class ComplicatedService {

@Inject
Event<Task> event; <1>
Event<TaskCompleted> event; <1>

void doSomething() {
// ...
Expand Down

0 comments on commit 2a45739

Please sign in to comment.