Fixes warnings.

ice4sip 5117
Lyubomir Marinov 12 years ago
parent 03468a3723
commit 37e8b10472

Binary file not shown.

@ -916,8 +916,8 @@ public void startChat( MetaContact metaContact,
Contact protocolContact,
boolean isSmsMessage)
{
SwingUtilities.invokeLater(new RunChatWindow(
metaContact, protocolContact, isSmsMessage));
SwingUtilities.invokeLater(
new RunChatWindow(metaContact, protocolContact, isSmsMessage));
}
public void startChat(String contactString)
@ -1334,11 +1334,11 @@ private boolean containsChat(ChatPanel chatPanel)
*/
private class RunChatWindow implements Runnable
{
private MetaContact metaContact;
private final MetaContact metaContact;
private Contact protocolContact;
private final Contact protocolContact;
private Boolean isSmsSelected = null;
private final Boolean isSmsSelected;
/**
* Creates an instance of <tt>RunMessageWindow</tt> by specifying the
@ -1347,7 +1347,7 @@ private class RunChatWindow implements Runnable
*/
public RunChatWindow(MetaContact metaContact)
{
this.metaContact = metaContact;
this(metaContact, null);
}
/**
@ -1359,8 +1359,7 @@ public RunChatWindow(MetaContact metaContact)
public RunChatWindow( MetaContact metaContact,
Contact protocolContact)
{
this.metaContact = metaContact;
this.protocolContact = protocolContact;
this(metaContact, protocolContact, null);
}
/**
@ -1372,7 +1371,7 @@ public RunChatWindow( MetaContact metaContact,
*/
public RunChatWindow( MetaContact metaContact,
Contact protocolContact,
boolean isSmsSelected)
Boolean isSmsSelected)
{
this.metaContact = metaContact;
this.protocolContact = protocolContact;
@ -1382,13 +1381,13 @@ public RunChatWindow( MetaContact metaContact,
/**
* Opens a chat window
*/
@Override
public void run()
{
ChatPanel chatPanel
= getContactChat(metaContact, protocolContact);
ChatPanel chatPanel = getContactChat(metaContact, protocolContact);
// if not explicitly set, do not set it, leave it to default
// or internally make the decision
// if not explicitly set, do not set it, leave it to default or
// internally make the decision
if(isSmsSelected != null)
chatPanel.setSmsSelected(isSmsSelected);

@ -51,12 +51,12 @@ public HelpMenu(MainFrame mainFrame)
}
/**
* Handles the <tt>ActionEvent</tt> when one of the menu items is
* selected.
* Handles the <tt>ActionEvent</tt> when one of the menu items is selected.
*
* @param e
* @param ev
*/
public void actionPerformed(ActionEvent e)
@Override
public void actionPerformed(ActionEvent ev)
{
}
}

Loading…
Cancel
Save