Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/WorkingCopyContent.java @ 622:4e6179bde4fc
Update to comply with Java 1.5 target
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 20 May 2013 16:56:40 +0200 |
parents | 7c0d2ce340b8 |
children | 6526d8adbc0f |
comparison
equal
deleted
inserted
replaced
621:99ad1e3a4e4d | 622:4e6179bde4fc |
---|---|
62 int rv = buffer.remaining(); | 62 int rv = buffer.remaining(); |
63 buffer.position(buffer.limit()); // pretend we've consumed the data | 63 buffer.position(buffer.limit()); // pretend we've consumed the data |
64 return rv; | 64 return rv; |
65 } catch (HgIOException ex) { | 65 } catch (HgIOException ex) { |
66 failure[0] = ex; | 66 failure[0] = ex; |
67 throw new IOException(ex); | 67 IOException e = new IOException(); |
68 ex.initCause(ex); // XXX Java 1.5 | |
69 throw e; | |
68 } | 70 } |
69 } | 71 } |
70 }); | 72 }); |
71 } catch (HgInvalidFileException ex) { | 73 } catch (HgInvalidFileException ex) { |
72 if (failure[0] != null) { | 74 if (failure[0] != null) { |