Commit in lcsim on MAIN
pom.xml+1-11.206 -> 1.207
src/org/lcsim/util/loop/LCSimLoop.java+21.12 -> 1.13
+3-1
2 modified files
Update parent version.
Fix skipping zero records bug in LCSimLoop.

lcsim
pom.xml 1.206 -> 1.207
diff -u -r1.206 -r1.207
--- pom.xml	18 Dec 2012 01:24:10 -0000	1.206
+++ pom.xml	11 Jan 2013 22:08:43 -0000	1.207
@@ -26,7 +26,7 @@
     <parent>
         <groupId>org.lcsim</groupId>
         <artifactId>lcsim-parent</artifactId>
-        <version>2.4</version>
+        <version>2.5-SNAPSHOT</version>
     </parent>
     <distributionManagement>
         <snapshotRepository>

lcsim/src/org/lcsim/util/loop
LCSimLoop.java 1.12 -> 1.13
diff -u -r1.12 -r1.13
--- LCSimLoop.java	20 Jun 2012 00:15:22 -0000	1.12
+++ LCSimLoop.java	11 Jan 2013 22:08:43 -0000	1.13
@@ -99,10 +99,12 @@
     * @param recordsToSkip The number of events to skip.
     * @throws org.freehep.record.source.NoSuchRecordException If there are insufficient events available.
     * @throws java.io.IOException If an IO exception occurs when reading an event
+    * @throws IllegalArgumentException if the argument is negative.
     */
     public void skip(long recordsToSkip) throws NoSuchRecordException, IOException
     {
       if (recordsToSkip < 0L) throw new IllegalArgumentException();
+      if (recordsToSkip == 0L) return;
       RecordSource rs = getRecordSource();
       if (rs.supportsIndex()) {
         try {
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1