harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r482638 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/Timer.java
Date Tue, 05 Dec 2006 13:14:11 GMT
Author: mloenko
Date: Tue Dec  5 05:14:10 2006
New Revision: 482638

URL: http://svn.apache.org/viewvc?view=rev&rev=482638
Log:
removed redundant code as agreed on the dev list

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/Timer.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/Timer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/Timer.java?view=diff&rev=482638&r1=482637&r2=482638
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/Timer.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/Timer.java
Tue Dec  5 05:14:10 2006
@@ -23,7 +23,6 @@
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.io.Serializable;
-import java.util.EventListener;
 import java.util.TimerTask;
 
 import javax.swing.event.EventListenerList;
@@ -160,7 +159,7 @@
     }
 
     public ActionListener[] getActionListeners() {
-        return (ActionListener[])listenerList.getListeners(ActionListener.class);
+        return listenerList.getListeners(ActionListener.class);
     }
 
     protected void fireActionPerformed(final ActionEvent event) {
@@ -171,15 +170,11 @@
     }
 
     public static void setLogTimers(final boolean isLogTimers) {
-        synchronized (Timer.class) {
-            Timer.isLogTimers = isLogTimers;
-        }
+        Timer.isLogTimers = isLogTimers;
     }
 
     public static boolean getLogTimers() {
-        synchronized (Timer.class) {
-            return isLogTimers;
-        }
+        return isLogTimers;
     }
 
     private void stopImpl() {



Mime
View raw message