Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/FilterDataAccess.java @ 421:fdd7d756dea0 v0.8.5
Allow IOException from DataAccess methods for subclasses with non-trivial implementations, to avoid exception dumps when inapropriate
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 22 Mar 2012 23:09:11 +0100 |
parents | 6c22bdc0bdfd |
children | 92c3ad9c2a51 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/FilterDataAccess.java Thu Mar 22 22:56:01 2012 +0100 +++ b/src/org/tmatesoft/hg/internal/FilterDataAccess.java Thu Mar 22 23:09:11 2012 +0100 @@ -39,7 +39,7 @@ count = length; } - protected int available() { + protected int available() throws IOException { return count; } @@ -50,12 +50,12 @@ } @Override - public boolean isEmpty() { + public boolean isEmpty() throws IOException { return count <= 0; } @Override - public int length() { + public int length() throws IOException { return length; }