lcsim
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
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 {