git://git.nikiroo.be
/
gofetch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update changelog
[gofetch.git]
/
src
/
be
/
nikiroo
/
gofetch
/
data
/
Comment.java
diff --git
a/src/be/nikiroo/gofetch/data/Comment.java
b/src/be/nikiroo/gofetch/data/Comment.java
index 44c0de105eef25831286f57447261b82ee98b6ef..963d6aa6d6dffe427d5bab979fc20cd1790550e7 100644
(file)
--- a/
src/be/nikiroo/gofetch/data/Comment.java
+++ b/
src/be/nikiroo/gofetch/data/Comment.java
@@
-9,16
+9,16
@@
public class Comment implements Iterable<Comment> {
private String author;
private String title;
private String date;
private String author;
private String title;
private String date;
- private
String content
;
+ private
List<String> lines
;
private List<Comment> children;
public Comment(String id, String author, String title, String date,
private List<Comment> children;
public Comment(String id, String author, String title, String date,
-
String content
) {
+
List<String> lines
) {
this.id = id;
this.author = author;
this.title = title;
this.date = date;
this.id = id;
this.author = author;
this.title = title;
this.date = date;
- this.
content = content
;
+ this.
lines = lines
;
this.children = new ArrayList<Comment>();
}
this.children = new ArrayList<Comment>();
}
@@
-61,13
+61,13
@@
public class Comment implements Iterable<Comment> {
/**
* @return the content
*/
/**
* @return the content
*/
- public
String getContent
() {
- return
content
;
+ public
List<String> getContentLines
() {
+ return
lines
;
}
public boolean isEmpty() {
}
public boolean isEmpty() {
- return children.isEmpty()
- && ("" + author + title
+ content
).trim().isEmpty();
+ return children.isEmpty()
&& lines.isEmpty()
+ && ("" + author + title).trim().isEmpty();
}
@Override
}
@Override