svn commit: r7021 - trunk/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactRightButtonMenu.java

kpouer at dev.java.net kpouer at dev.java.net
Wed Apr 21 14:51:16 CEST 2010


Author: kpouer
Date: 2010-04-21 12:51:14+0000
New Revision: 7021

Modified:
   trunk/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactRightButtonMenu.java

Log:
made a field final
added @Override annotation
removed unnecessary initialization
removed redundant semicolon

Modified: trunk/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactRightButtonMenu.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactRightButtonMenu.java?view=diff&rev=7021&p1=trunk/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactRightButtonMenu.java&p2=trunk/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactRightButtonMenu.java&r1=7020&r2=7021
==============================================================================
--- trunk/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactRightButtonMenu.java	(original)
+++ trunk/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactRightButtonMenu.java	2010-04-21 12:51:14+0000
@@ -115,7 +115,7 @@
         viewHistoryString,
         new ImageIcon(ImageLoader.getImage(ImageLoader.HISTORY_16x16_ICON)));
 
-    private MetaContact contactItem;
+    private final MetaContact contactItem;
 
     private static final String moveToPrefix = "moveTo:";
 
@@ -372,7 +372,7 @@
             for (int i = 0; i < serRefs.length; i ++)
             {
                 PluginComponent component = (PluginComponent) GuiActivator
-                    .bundleContext.getService(serRefs[i]);;
+                    .bundleContext.getService(serRefs[i]);
 
                 component.setCurrentContact(contactItem);
 
@@ -430,7 +430,7 @@
     {
         JMenuItem menuItem = (JMenuItem) e.getSource();
         String itemName = menuItem.getName();
-        Contact contact = null;
+        Contact contact;
 
         if (itemName.equals(addContactItem.getName()))
         {
@@ -560,6 +560,7 @@
             // user cancels the action
             this.moveDialog.addWindowListener(new WindowAdapter()
                 {
+                    @Override
                     public void windowClosed(WindowEvent e)
                     {
                         contactList.setGroupClickConsumed(false);

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: commits-help at sip-communicator.dev.java.net





More information about the commits mailing list