/** * Add current comments to the given entity. By default, assumes entity * is {@link Commentable}. */ protected void addComments(Object obj) { String[] comments = currentComments(); if (comments.length > 0 && obj instanceof Commentable) ((Commentable) obj).setComments(comments); }
/** * Add current comments to the given entity. By default, assumes entity * is {@link Commentable}. */ protected void addComments(Object obj) { String[] comments = currentComments(); if (comments.length > 0 && obj instanceof Commentable) ((Commentable) obj).setComments(comments); }
/** * Add current comments to the given entity. By default, assumes entity * is {@link Commentable}. */ protected void addComments(Object obj) { String[] comments = currentComments(); if (comments.length > 0 && obj instanceof Commentable) ((Commentable) obj).setComments(comments); }
/** * Add current comments to the given entity. By default, assumes entity * is {@link Commentable}. */ protected void addComments(Object obj) { String[] comments = currentComments(); if (comments.length > 0 && obj instanceof Commentable) ((Commentable) obj).setComments(comments); }