1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

Remove XMPPException from MultiUserChat.sendMessage

as it's not actually thrown.
This commit is contained in:
Florian Schmaus 2015-03-07 20:52:44 +01:00
parent 2db5ebb4b7
commit 48aae12ba3

View file

@ -1569,10 +1569,9 @@ public class MultiUserChat {
* Sends a message to the chat room. * Sends a message to the chat room.
* *
* @param text the text of the message to send. * @param text the text of the message to send.
* @throws XMPPException if sending the message fails.
* @throws NotConnectedException * @throws NotConnectedException
*/ */
public void sendMessage(String text) throws XMPPException, NotConnectedException { public void sendMessage(String text) throws NotConnectedException {
Message message = createMessage(); Message message = createMessage();
message.setBody(text); message.setBody(text);
connection.sendStanza(message); connection.sendStanza(message);
@ -1606,10 +1605,9 @@ public class MultiUserChat {
* Sends a Message to the chat room. * Sends a Message to the chat room.
* *
* @param message the message. * @param message the message.
* @throws XMPPException if sending the message fails.
* @throws NotConnectedException * @throws NotConnectedException
*/ */
public void sendMessage(Message message) throws XMPPException, NotConnectedException { public void sendMessage(Message message) throws NotConnectedException {
message.setTo(room); message.setTo(room);
message.setType(Message.Type.groupchat); message.setType(Message.Type.groupchat);
connection.sendStanza(message); connection.sendStanza(message);