db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r404781 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/util/CallbackClosure.java
Date Sun, 07 May 2006 15:05:50 GMT
Author: tomdz
Date: Sun May  7 08:05:47 2006
New Revision: 404781

URL: http://svn.apache.org/viewcvs?rev=404781&view=rev
Log:
Removed usage of the Queue interface which is Java 5 only

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/util/CallbackClosure.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/util/CallbackClosure.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/util/CallbackClosure.java?rev=404781&r1=404780&r2=404781&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/util/CallbackClosure.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/util/CallbackClosure.java Sun May  7 08:05:47
2006
@@ -21,7 +21,6 @@
 import java.util.HashMap;
 import java.util.LinkedList;
 import java.util.Map;
-import java.util.Queue;
 
 import org.apache.commons.collections.Closure;
 import org.apache.ddlutils.DdlUtilsException;
@@ -154,12 +153,12 @@
      */
     public void execute(Object obj) throws DdlUtilsException
     {
-        Queue queue = new LinkedList();
+        LinkedList queue = new LinkedList();
 
         queue.add(obj.getClass());
         while (!queue.isEmpty())
         {
-            Class  type     = (Class)queue.poll();
+            Class  type     = (Class)queue.removeFirst();
             Method callback = (Method)_callbacks.get(type);
 
             if (callback != null)



Mime
View raw message