Search in sources :

Example 1 with ContextLineInfo

use of com.google.gerrit.extensions.common.ContextLineInfo in project gerrit by GerritCodeReview.

the class CommentContextIT method createContextLines.

private List<ContextLineInfo> createContextLines(String... args) {
    List<ContextLineInfo> result = new ArrayList<>();
    for (int i = 0; i < args.length; i += 2) {
        int lineNbr = Integer.parseInt(args[i]);
        String contextLine = args[i + 1];
        ContextLineInfo info = new ContextLineInfo(lineNbr, contextLine);
        result.add(info);
    }
    return result;
}
Also used : ArrayList(java.util.ArrayList) ContextLineInfo(com.google.gerrit.extensions.common.ContextLineInfo)

Aggregations

ContextLineInfo (com.google.gerrit.extensions.common.ContextLineInfo)1 ArrayList (java.util.ArrayList)1