Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors in the CDI guide #12276

Merged
merged 1 commit into from
Sep 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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