Commits

Artem Tikhomirov  committed 3572fcb

Don't expose methods with DataAccess in public API

  • Participants
  • Parent commits ac8e1ce

Comments (0)

Files changed (1)

File src/org/tmatesoft/hg/repo/HgChangelog.java

 			}
 		}
 
-		// FIXME internal class DataAccess as part of API
-		public static RawChangeset parse(DataAccess da) {
-			try {
-				byte[] data = da.byteArray();
-				RawChangeset rv = new RawChangeset();
-				rv.init(data, 0, data.length, null);
-				return rv;
-			} catch (IOException ex) {
-				throw new HgBadStateException(ex); // FIXME "Error reading changeset data"
-			}
+		/*package*/ static RawChangeset parse(DataAccess da) throws IOException {
+			byte[] data = da.byteArray();
+			RawChangeset rv = new RawChangeset();
+			rv.init(data, 0, data.length, null);
+			return rv;
 		}
 
 		// @param usersPool - it's likely user names get repeated again and again throughout repository. can be null
+		// FIXME throws "Error reading changeset data"
 		/* package-local */void init(byte[] data, int offset, int length, Pool<String> usersPool) {
 			final int bufferEndIndex = offset + length;
 			final byte lineBreak = (byte) '\n';