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
1 changed files with 2 additions and 4 deletions

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);