1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +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.
*
* @param text the text of the message to send.
* @throws XMPPException if sending the message fails.
* @throws NotConnectedException
*/
public void sendMessage(String text) throws XMPPException, NotConnectedException {
public void sendMessage(String text) throws NotConnectedException {
Message message = createMessage();
message.setBody(text);
connection.sendStanza(message);
@ -1606,10 +1605,9 @@ public class MultiUserChat {
* Sends a Message to the chat room.
*
* @param message the message.
* @throws XMPPException if sending the message fails.
* @throws NotConnectedException
*/
public void sendMessage(Message message) throws XMPPException, NotConnectedException {
public void sendMessage(Message message) throws NotConnectedException {
message.setTo(room);
message.setType(Message.Type.groupchat);
connection.sendStanza(message);