Delete unused deprecated method.
Deprecated method:
org.jivesoftware.spark.ui.rooms.ChatRoomImpl.setparticipantJID(java.lang.String)
Alternative method:
org.jivesoftware.spark.ui.rooms.ChatRoomImpl.setParticipantJID
Method org.jivesoftware.spark.ui.rooms.ChatRoomImpl#setparticipantJID renamed to: org.jivesoftware.spark.ui.rooms.ChatRoomImpl#setParticipantJID
@@ -48,10 +48,8 @@ import org.jivesoftware.sparkimpl.profile.VCardManager;
import org.jivesoftware.sparkimpl.settings.local.LocalPreferences;
import org.jivesoftware.sparkimpl.settings.local.SettingsManager;
import org.jxmpp.jid.*;
-import org.jxmpp.jid.impl.JidCreate;
import org.jxmpp.jid.parts.Localpart;
import org.jxmpp.jid.parts.Resourcepart;
-import org.jxmpp.stringprep.XmppStringprepException;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
@@ -124,7 +122,7 @@ public class ChatRoomImpl extends ChatRoom {
public ChatRoomImpl(final EntityJid participantJID, Resourcepart participantNickname, CharSequence title, boolean initUi) {
this.active = true;
//activateNotificationTime = System.currentTimeMillis();
- setparticipantJID(participantJID);
+ setParticipantJID(participantJID);
this.participantNickname = participantNickname;
// Loads the current history for this user.
@@ -197,21 +195,9 @@ public class ChatRoomImpl extends ChatRoom {
/**
* Set the XMPP address of the participant.
*
- * @param jidString the XMPP address
- * @deprecated use {@link #setparticipantJID(Jid)} instead.
+ * @param jid the XMPP address
*/
- @Deprecated
- private void setparticipantJID(String jidString) {
- EntityJid jid;
- try {
- jid = JidCreate.entityFrom(jidString);
- } catch (XmppStringprepException e) {
- throw new IllegalStateException(e);
- }
- setparticipantJID(jid);
- }
-
- private void setparticipantJID(Jid jid) {
+ private void setParticipantJID(Jid jid) {
if (!jid.isEntityJid()) {
return;
}
@@ -549,13 +535,13 @@ public class ChatRoomImpl extends ChatRoom {
if ( carbon.getDirection() == CarbonExtension.Direction.received )
{
// This is a stanza that we received from someone on one of our other clients.
- setparticipantJID(forwardedStanza.getFrom());
+ setParticipantJID(forwardedStanza.getFrom());
insertMessage( forwardedStanza );
}
else
{
// This is a stanza that one of our own clients sent.
- setparticipantJID(forwardedStanza.getTo());
+ setParticipantJID(forwardedStanza.getTo());
displaySendMessage( forwardedStanza );
}
showTyping( false );
@@ -564,7 +550,7 @@ public class ChatRoomImpl extends ChatRoom {
else if ( message.getBody() != null )
{
// If the message is not from the current agent. Append to chat.
- setparticipantJID(message.getFrom());
+ setParticipantJID(message.getFrom());
insertMessage( message );
showTyping( false );
@@ -611,7 +597,7 @@ public class ChatRoomImpl extends ChatRoom {
getTranscriptWindow().insertMessage(participantNickname, message, ChatManager.FROM_COLOR);
// Set the participant jid to their full JID.
- setparticipantJID(message.getFrom());
+ setParticipantJID(message.getFrom());
}
private void checkEvents(Jid from, String packetID, MessageEvent messageEvent) {
