Skip to content

Commit

Permalink
Fix errors in the CDI guide
Browse files Browse the repository at this point in the history
  • Loading branch information
xstefank committed Sep 23, 2020
1 parent 65559ff commit 6298bac
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 6298bac

Please sign in to comment.