Adjust in documentation StanzaTypeFilter to uppercase as in code

This commit is contained in:
Alameyo 2019-03-27 00:12:58 +01:00
parent 0cd3318b12
commit 7f542e403f
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ and a stanza listener:
```
// Create a stanza filter to listen for new messages from a particular
// user. We use an AndFilter to combine two other filters._
StanzaFilter filter = new AndFilter(StanzaTypeFilter.Message, FromMatchesFilter.create("mary@jivesoftware.com"));
StanzaFilter filter = new AndFilter(StanzaTypeFilter.MESSAGE, FromMatchesFilter.create("mary@jivesoftware.com"));
// Assume we've created an XMPPConnection named "connection".
// First, register a stanza collector using the filter we created.