Here you can find the source of createConflictMessage(List
public static String createConflictMessage(List<String> conflicts)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.util.List; public class Main { public static String createConflictMessage(List<String> conflicts) { StringBuilder sb = new StringBuilder("merge conflict(s)"); for (String c : conflicts) { sb.append('\n' + c); }/*from www .ja va 2 s .co m*/ return sb.toString(); } }