Skip to content

Commit

Permalink
fix CloudKey example
Browse files Browse the repository at this point in the history
Fixes the incorrect code that would result in `CloudKey<CloudKey<Requirements<C, T>>>`. It could be replaced by the correct arguments, but they are redundant, so the most refined invocation is the empty diamond `<>`.
  • Loading branch information
Galapen authored May 24, 2024
1 parent 49719c5 commit f237df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/processors/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ the requirements in the command meta and for the processor to access the stored
public static final CloudKey<Requirements<YourSenderType, YourRequirementInterface>>
REQUIREMENT_KEY = CloudKey.of(
"requirements",
new TypeToken<CloudKey<Requirements<YourSenderType, YourRequirementInterface>>>() {}
new TypeToken<>() {}
);
```

Expand Down

0 comments on commit f237df1

Please sign in to comment.