Print

Print


Commit in lcsim/src/org/lcsim/util/lcio on MAIN
SIOGenericObjectBlockHandler.java+2-21.5 -> 1.6
use event interface rather than sio class; should fix problem with TrackState cast exception

lcsim/src/org/lcsim/util/lcio
SIOGenericObjectBlockHandler.java 1.5 -> 1.6
diff -u -r1.5 -r1.6
--- SIOGenericObjectBlockHandler.java	22 Mar 2011 16:48:36 -0000	1.5
+++ SIOGenericObjectBlockHandler.java	1 Apr 2011 18:31:25 -0000	1.6
@@ -41,14 +41,14 @@
     public void writeBlock(SIOWriter writer, List collection, LCMetaData md) throws IOException {
       SIOOutputStream out = writer.createBlock(md.getName(), LCIOConstants.MAJORVERSION, LCIOConstants.MINORVERSION);
 
-      List<SIOGenericObject> goCollection = collection;
+      List<GenericObject> goCollection = collection;
       // Note: treating empty collections as having variable size saves space
       boolean isFixedSize = !goCollection.isEmpty();
       if (isFixedSize) {
           int nInt = goCollection.get(0).getNInt();
           int nFloat = goCollection.get(0).getNFloat();
           int nDouble = goCollection.get(0).getNDouble();
-          for (SIOGenericObject object : goCollection) {
+          for (GenericObject object : goCollection) {
               isFixedSize &= object.getNInt()==nInt && object.getNFloat()==nFloat && object.getNDouble()==nDouble;
           }
       }
CVSspam 0.2.8