mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
Fixes spelling (includes one API change)
Mostly benign changes. Added one new method to replace a method with a spelling mistake in its name. Kept the old method, marked as 'deprecated'.
This commit is contained in:
parent
38c6dd21b4
commit
c85bcadd81
140 changed files with 270 additions and 265 deletions
|
@ -47,7 +47,7 @@ import org.jivesoftware.smackx.disco.ServiceDiscoveryManager;
|
|||
import org.jivesoftware.smackx.hashes.element.HashElement;
|
||||
|
||||
/**
|
||||
* Manager that can be used to determine support for hash functions. By default the Manager announces support for
|
||||
* Manager that can be used to determine support for hash functions. By default,the Manager announces support for
|
||||
* XEP-0300, as well as for the recommended set of hash algorithms. Those contain SHA256, SHA384, SHA512, SHA3-256,
|
||||
* SHA3-384, SHA3-512, BLAKE2B256, BLAKE2B384 and BLAKE2B512. Those algorithms got recommended here:
|
||||
* <a href="https://xmpp.org/extensions/xep-0300.html#recommendations">https://xmpp.org/extensions/xep-0300.html#recommendations</a>.
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
* AbstractHttpOverXmpp.Data data = new AbstractHttpOverXmpp.Data(child);
|
||||
*
|
||||
* // create request
|
||||
* HttpOverXmppReq req = HttpOverXmppReq.buider()
|
||||
* HttpOverXmppReq req = HttpOverXmppReq.builder()
|
||||
* .setMethod(HttpMethod.POST)
|
||||
* .setResource("/mailbox")
|
||||
* .setHeaders(headers)
|
||||
|
|
|
@ -146,7 +146,7 @@
|
|||
* <pre>
|
||||
* <code>
|
||||
* IoTDiscoveryManager iotDiscoveryManager = IoTDiscoveryManager.getInstanceFor(connection);
|
||||
* iotDiscovyerManager.registerThing(thing);
|
||||
* iotDiscoveryManager.registerThing(thing);
|
||||
* </code>
|
||||
* </pre>
|
||||
* <p>
|
||||
|
@ -162,7 +162,7 @@
|
|||
* Things can usually only be used by other things if they are friends. Since a
|
||||
* thing normally can't decide on its own if an incoming friendship request
|
||||
* should be granted or not, we can delegate this decision to a provisioning
|
||||
* service. Smack provides the `IoTProvisinoManager` to deal with friendship and
|
||||
* service. Smack provides the `IoTProvisionManager` to deal with friendship and
|
||||
* provisioning.
|
||||
* </p>
|
||||
* <p>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* <h2>Usage</h2>
|
||||
* <p>
|
||||
* The most important class is the {@link org.jivesoftware.smackx.message_markup.element.MarkupElement} class, which
|
||||
* contains a Builder to construct message markup..
|
||||
* contains a Builder to construct message markup.
|
||||
* </p>
|
||||
* <p>
|
||||
* To start creating a Message Markup Extension, call
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
*
|
||||
* <pre>
|
||||
* <code>
|
||||
* Message message = new Message("Alice is a realy nice person.");
|
||||
* Message message = new Message("Alice is a really nice person.");
|
||||
* BareJid alice = JidCreate.bareFrom("alice@capulet.lit");
|
||||
* ReferenceManager.addMention(message, 0, 5, alice);
|
||||
* </code>
|
||||
|
|
|
@ -39,7 +39,7 @@ public class ExplicitMessageEncryptionElementTest extends SmackTestSuite {
|
|||
public void addToMessageTest() {
|
||||
Message message = StanzaBuilder.buildMessage().build();
|
||||
|
||||
// Check inital state (no elements)
|
||||
// Check initial state (no elements)
|
||||
assertNull(ExplicitMessageEncryptionElement.from(message));
|
||||
assertFalse(ExplicitMessageEncryptionElement.hasProtocol(message,
|
||||
ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol.omemoVAxolotl));
|
||||
|
@ -75,7 +75,7 @@ public class ExplicitMessageEncryptionElementTest extends SmackTestSuite {
|
|||
assertTrue(ExplicitMessageEncryptionElement.hasProtocol(message,
|
||||
ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol.omemoVAxolotl));
|
||||
|
||||
// Check, if adding additional OMEMO wont add another element
|
||||
// Check, if adding additional OMEMO won't add another element
|
||||
ExplicitMessageEncryptionElement.set(messageBuilder,
|
||||
ExplicitMessageEncryptionElement.ExplicitMessageEncryptionProtocol.omemoVAxolotl);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue