Commit in lcsim/src/org/lcsim/recon/tracking/seedtracker on MAIN
SeedCandidate.java+1-11.3 -> 1.4
ConfirmerExtender.java+3-31.10 -> 1.11
+4-4
2 modified files
Remove LinkedList methods introduced in JDK 1.6 for compatibility with older Java versions.

lcsim/src/org/lcsim/recon/tracking/seedtracker
SeedCandidate.java 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- SeedCandidate.java	24 Jul 2009 14:05:03 -0000	1.3
+++ SeedCandidate.java	24 Jul 2009 14:37:41 -0000	1.4
@@ -176,7 +176,7 @@
     }
 
     public SeedLayer getNextLayer() {
-        return _unchecked.pollFirst();
+        return _unchecked.poll();
     }
 
     private void UpdateMSMap(HelicalTrackHit hit) {

lcsim/src/org/lcsim/recon/tracking/seedtracker
ConfirmerExtender.java 1.10 -> 1.11
diff -u -r1.10 -r1.11
--- ConfirmerExtender.java	24 Jul 2009 14:05:03 -0000	1.10
+++ ConfirmerExtender.java	24 Jul 2009 14:37:41 -0000	1.11
@@ -108,7 +108,7 @@
         while (seedlist.size() > 0) {
 
             //  Pull the last seed off the queue (use a LIFO queue to minimize queue length)
-            SeedCandidate seed = seedlist.pollLast();
+            SeedCandidate seed = seedlist.poll();
 
             //  See if there are any layers left for confirm/extend
             int lyrsleft = seed.getUncheckedLayers().size();
@@ -181,7 +181,7 @@
                     }
 
                     //  Add the seed to the LIFO queue of seed candidates
-                    seedlist.addLast(test);
+                    seedlist.addFirst(test);
                     chisqbest = Math.min(chisqbest, _fitter.getHelix().chisqtot());
 
                 } else {
@@ -203,7 +203,7 @@
             //  Finished checking hits in the current layer
             //  If all fit tries for this layer are potentially bad hits, include the starting seed in the list
             if (chisqbest - oldchisq > strategy.getBadHitChisq()) {
-                seedlist.addLast(seed);
+                seedlist.addFirst(seed);
 
 //                    if (diag != null) {
 //                        diag.fireConfirmerExtenderAllHitsPotentiallyBad(task, seedin, hitlist, chisqbest, oldchisq);
CVSspam 0.2.8