예제 #1
0
  public void addToCommentBefore(List<String> s) {
    String b = getCommentBefore();
    List<String> ss = new ArrayList<String>();
    if (b != null && (b = cleanComment(b)).length() > 0) ss.add(b);
    for (String a : s) if (a != null && (a = cleanComment(a)).length() > 0) ss.add(a);
    // s);
    // if (b != null && b.trim().length() > 0)
    //	ss.add(0, b);

    setCommentBefore(ss.isEmpty() ? null : StringUtils.implode(ss, "\n"));
  }
예제 #2
0
 public void stripDetails() {
   setCommentBefore(null);
   setCommentAfter(null);
   setElementFile(null);
   setElementLine(-1);
 }