aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicInstantMessagingJabberImpl.java
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2013-05-23 18:50:35 +0300
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2013-05-23 18:50:35 +0300
commitb211c26d6c8f51a75d3b64b6092284c3847a3a8a (patch)
treea51b7d816a27f8db492cf9c44f998e2da8176635 /src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicInstantMessagingJabberImpl.java
parent24e81b82808681c6b5741b14048ef58c4e665e37 (diff)
downloadjitsi-b211c26d6c8f51a75d3b64b6092284c3847a3a8a.zip
jitsi-b211c26d6c8f51a75d3b64b6092284c3847a3a8a.tar.gz
jitsi-b211c26d6c8f51a75d3b64b6092284c3847a3a8a.tar.bz2
Fixes warnings, removes trailing whitespace, adds @Override annotations.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicInstantMessagingJabberImpl.java')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicInstantMessagingJabberImpl.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicInstantMessagingJabberImpl.java b/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicInstantMessagingJabberImpl.java
index 070c506..0005f5d 100644
--- a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicInstantMessagingJabberImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicInstantMessagingJabberImpl.java
@@ -162,6 +162,7 @@ public class OperationSetBasicInstantMessagingJabberImpl
*
* @return the newly created message.
*/
+ @Override
public Message createMessage(String content, String contentType,
String encoding, String subject)
{
@@ -217,6 +218,7 @@ public class OperationSetBasicInstantMessagingJabberImpl
* @return <tt>true</tt> if the contact supports it and
* <tt>false</tt> otherwise.
*/
+ @Override
public boolean isContentTypeSupported(String contentType, Contact contact)
{
// by default we support default mime type, for other mimetypes
@@ -368,7 +370,7 @@ public class OperationSetBasicInstantMessagingJabberImpl
/**
* Helper function used to send a message to a contact, with the given
* extensions attached.
- *
+ *
* @param to The contact to send the message to.
* @param toResource The resource to send the message to or null if no
* resource has been specified
@@ -455,7 +457,7 @@ public class OperationSetBasicInstantMessagingJabberImpl
// this is plain text so keep it as it is.
msg.setBody(content);
}
-
+
//msg.addExtension(new Version());
MessageEventManager.
@@ -506,6 +508,7 @@ public class OperationSetBasicInstantMessagingJabberImpl
* @throws java.lang.IllegalArgumentException if <tt>to</tt> is not an
* instance belonging to the underlying implementation.
*/
+ @Override
public void sendInstantMessage( Contact to,
ContactResource toResource,
Message message)
@@ -521,7 +524,7 @@ public class OperationSetBasicInstantMessagingJabberImpl
/**
* Replaces the message with ID <tt>correctedMessageUID</tt> sent to
* the contact <tt>to</tt> with the message <tt>message</tt>
- *
+ *
* @param to The contact to send the message to.
* @param message The new message.
* @param correctedMessageUID The ID of the message being replaced.