diff src/org/tmatesoft/hg/internal/InflaterDataAccess.java @ 423:9c9c442b5f2e

Major refactoring of exception handling. Low-level API uses RuntimeExceptions, while checked are left for higher level
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 23 Mar 2012 22:51:18 +0100
parents fdd7d756dea0
children 2a08466838d3
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/InflaterDataAccess.java	Fri Mar 23 21:26:01 2012 +0100
+++ b/src/org/tmatesoft/hg/internal/InflaterDataAccess.java	Fri Mar 23 22:51:18 2012 +0100
@@ -22,9 +22,6 @@
 import java.util.zip.Inflater;
 import java.util.zip.ZipException;
 
-import org.tmatesoft.hg.core.HgBadStateException;
-
-
 /**
  * DataAccess counterpart for InflaterInputStream.
  * XXX is it really needed to be subclass of FilterDataAccess? 
@@ -99,7 +96,7 @@
 					c += inflater.inflate(dummy, 0, dummy.length);
 				}
 			} catch (DataFormatException ex) {
-				throw new HgBadStateException(ex);
+				throw new IOException(ex);
 			}
 		}
 		decompressedLength = c + oldPos;