Skip to content

Commit

Permalink
add comment and annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Jun 8, 2022
1 parent 082c787 commit 0e32a3a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,13 @@ History parse(File file, Repository repository) throws HistoryException {
}

/**
* Parse the given string.
* Parse the given string. Used for testing.
*
* @param buffer The string to be parsed
* @return The parsed history
* @throws IOException if we fail to parse the buffer
*/
@VisibleForTesting
History parse(String buffer) throws IOException {
processStream(new ByteArrayInputStream(buffer.getBytes(StandardCharsets.UTF_8)));
return history;
Expand Down

0 comments on commit 0e32a3a

Please sign in to comment.