diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2008-12-07 07:18:07 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2008-12-07 07:18:07 +0000 |
commit | a36ab57e97b1fd498185964a8d981f7c63f44454 (patch) | |
tree | ccaa03be6d5b2fa444635d818446cdc9c5d70e4e /src/net/java/sip/communicator | |
parent | f6148f576ce02edd5821c4f81a251e287b89ea27 (diff) | |
download | jitsi-a36ab57e97b1fd498185964a8d981f7c63f44454.zip jitsi-a36ab57e97b1fd498185964a8d981f7c63f44454.tar.gz jitsi-a36ab57e97b1fd498185964a8d981f7c63f44454.tar.bz2 |
Fixes warnings.
Diffstat (limited to 'src/net/java/sip/communicator')
7 files changed, 29 insertions, 50 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/account/AccountRegSummaryPage.java b/src/net/java/sip/communicator/impl/gui/main/account/AccountRegSummaryPage.java index 3b6b36a..a03d410 100644 --- a/src/net/java/sip/communicator/impl/gui/main/account/AccountRegSummaryPage.java +++ b/src/net/java/sip/communicator/impl/gui/main/account/AccountRegSummaryPage.java @@ -5,9 +5,9 @@ */ package net.java.sip.communicator.impl.gui.main.account; +import java.awt.*; import java.util.*; -import java.awt.*; import javax.swing.*; import net.java.sip.communicator.impl.gui.customcontrols.*; @@ -27,8 +27,6 @@ public class AccountRegSummaryPage extends SCScrollPane implements WizardPage { - private String backPageIdentifier; - private JPanel keysPanel = new TransparentPanel(new GridLayout(0, 1, 10, 10)); private JPanel valuesPanel = new TransparentPanel(new GridLayout(0, 1, 10, 10)); @@ -50,8 +48,6 @@ public class AccountRegSummaryPage */ public AccountRegSummaryPage(AccountRegWizardContainerImpl wizardContainer) { - super(); - this.wizardContainer = wizardContainer; this.pageTitleLabel.setFont(Constants.FONT.deriveFont(Font.BOLD, 18f)); diff --git a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomCommonRightButtonMenu.java b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomCommonRightButtonMenu.java index b3a934c..b5ac6c0 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomCommonRightButtonMenu.java +++ b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomCommonRightButtonMenu.java @@ -54,8 +54,6 @@ public class ChatRoomCommonRightButtonMenu searchForChatRoomsString.getText(), new ImageIcon(ImageLoader.getImage(ImageLoader.SEARCH_ICON_16x16))); - private MainFrame mainFrame; - private ChatRoomProviderWrapper chatRoomProvider; /** * Creates an instance of <tt>ChatRoomsListRightButtonMenu</tt>. @@ -63,10 +61,6 @@ public class ChatRoomCommonRightButtonMenu public ChatRoomCommonRightButtonMenu( MainFrame mainFrame, ChatRoomProviderWrapper provider) { - super(); - - this.mainFrame = mainFrame; - this.chatRoomProvider = provider; this.setLocation(getLocation()); diff --git a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomListUI.java b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomListUI.java index 343078f..b6bdbf7 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomListUI.java +++ b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomListUI.java @@ -28,13 +28,11 @@ public class ChatRoomListUI implements MouseListener, ChatRoomListChangeListener { - private JList chatRoomList = new JList(); + private final JList chatRoomList = new JList(); - private ChatRoomListModel chatRoomsListModel = new ChatRoomListModel(); + private final ChatRoomListModel chatRoomsListModel = new ChatRoomListModel(); - private JPanel treePanel = new JPanel(new BorderLayout()); - - private ChatRoomListDialog parentDialog; + private final JPanel treePanel = new JPanel(new BorderLayout()); /** * Creates the scroll panel containing the chat rooms list. @@ -43,8 +41,6 @@ public class ChatRoomListUI */ public ChatRoomListUI(ChatRoomListDialog parentDialog) { - this.parentDialog = parentDialog; - GuiActivator.getUIService().getConferenceChatManager() .addChatRoomListChangeListener(this); diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/AddContactWizardPage2.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/AddContactWizardPage2.java index b69c615..208e639 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/AddContactWizardPage2.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/AddContactWizardPage2.java @@ -4,7 +4,6 @@ * Distributable under LGPL license. * See terms of license at gnu.org. */ - package net.java.sip.communicator.impl.gui.main.contactlist.addcontact; import java.util.*; @@ -26,11 +25,9 @@ public class AddContactWizardPage2 { public static final String IDENTIFIER = "SELECT_GROUP_PANEL"; - private SelectGroupPanel selectGroupPanel; - - private WizardContainer wizard; - - private NewContact newContact; + private final SelectGroupPanel selectGroupPanel; + + private final NewContact newContact; /** * Creates an instance of <tt>AddContactWizardPage2</tt>. @@ -44,8 +41,6 @@ public class AddContactWizardPage2 NewContact newContact, Iterator groupsList) { - this.wizard = wizard; - this.newContact = newContact; selectGroupPanel = new SelectGroupPanel(wizard, newContact); diff --git a/src/net/java/sip/communicator/impl/netaddr/AddressDiagnosticsKit.java b/src/net/java/sip/communicator/impl/netaddr/AddressDiagnosticsKit.java index 32c1bc9..e24051f 100644 --- a/src/net/java/sip/communicator/impl/netaddr/AddressDiagnosticsKit.java +++ b/src/net/java/sip/communicator/impl/netaddr/AddressDiagnosticsKit.java @@ -1,3 +1,9 @@ +/* + * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ package net.java.sip.communicator.impl.netaddr; import java.net.*; diff --git a/src/net/java/sip/communicator/impl/netaddr/AddressPool.java b/src/net/java/sip/communicator/impl/netaddr/AddressPool.java index 7fc42b0..529e612 100644 --- a/src/net/java/sip/communicator/impl/netaddr/AddressPool.java +++ b/src/net/java/sip/communicator/impl/netaddr/AddressPool.java @@ -1,10 +1,14 @@ +/* + * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ package net.java.sip.communicator.impl.netaddr; import java.net.*; import java.util.*; -import net.java.sip.communicator.util.*; - /** * The class scans all local interfaces discovering all addresses, and starts * constantly testing them one by one in order to verify their properties. It @@ -15,20 +19,19 @@ import net.java.sip.communicator.util.*; */ public class AddressPool { - private static Logger logger = - Logger.getLogger(AddressPool.class); + private final Map<AddressPoolEntry, AddressDiagnosticsKit> diagnosticsKits = + new Hashtable<AddressPoolEntry, AddressDiagnosticsKit>(); - private Map diagnosticsKits = new Hashtable(); - private ArrayList addressEntries = new ArrayList(); + private final List<AddressPoolEntry> addressEntries = + new ArrayList<AddressPoolEntry>(); public AddressPool() { - super(); } private void initPool() { - Enumeration localIfaces = null; + Enumeration<NetworkInterface> localIfaces = null; try { localIfaces = NetworkInterface.getNetworkInterfaces(); @@ -42,15 +45,14 @@ public class AddressPool //loop over all local network interfaces while (localIfaces.hasMoreElements()) { - NetworkInterface iFace = - (NetworkInterface) localIfaces.nextElement(); + NetworkInterface iFace = localIfaces.nextElement(); - Enumeration addresses = iFace.getInetAddresses(); + Enumeration<InetAddress> addresses = iFace.getInetAddresses(); //addresses loop while (addresses.hasMoreElements()) { - InetAddress address = (InetAddress) addresses.nextElement(); + InetAddress address = addresses.nextElement(); //we don't care about loopback addresses if(address.isLoopbackAddress()) @@ -73,6 +75,4 @@ public class AddressPool AddressPool pool = new AddressPool(); pool.initPool(); } - - } diff --git a/src/net/java/sip/communicator/service/protocol/event/CallReceivedEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallReceivedEvent.java index 5b6497d..d6107bc 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallReceivedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallReceivedEvent.java @@ -4,7 +4,6 @@ * Distributable under LGPL license. * See terms of license at gnu.org. */ - package net.java.sip.communicator.service.protocol.event; import java.util.*; @@ -13,26 +12,19 @@ import net.java.sip.communicator.service.protocol.*; /** * A class representing the event of a call reception. + * * @author Emil Ivov */ public class CallReceivedEvent extends EventObject { - private Call call = null; - - public CallReceivedEvent(Call call) { super(call); } - public CallParticipant getCallParticipant() - { - return (CallParticipant)getSource(); - } - public Call getCall() { - return (Call)getSource(); + return (Call) getSource(); } } |