Merge pull request #30237 from akka/rgc/fix-java-docs-on-tagging

fix(docs): java snippet showing how to tag events
This commit is contained in:
Patrik Nordwall 2021-06-02 12:52:25 +02:00 committed by GitHub
commit 1c6f184127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -355,7 +355,10 @@ public class BasicPersistentBehaviorTest {
// #tagging // #tagging
@Override @Override
public Set<String> tagsFor(Event event) { public Set<String> tagsFor(Event event) {
throw new RuntimeException("TODO: inspect the event and return any tags it should have"); Set<String> tags = new HashSet<>();
tags.add("tag1");
tags.add("tag2");
return tags;
} }
// #tagging // #tagging
// #supervision // #supervision