#26-Add true and false
This commit is contained in:
parent
fb04c3bb1d
commit
0f14b1acd6
@ -10,9 +10,8 @@ import javax.persistence.Entity;
|
||||
@Entity
|
||||
public class LineChange extends BaseEntity {
|
||||
|
||||
private Boolean added;
|
||||
|
||||
private Boolean removed;
|
||||
private Boolean added = false;
|
||||
private Boolean removed = false;
|
||||
private String lineFrom;
|
||||
private String lineTo;
|
||||
|
||||
|
@ -260,6 +260,7 @@ public class GitRepositoryService {
|
||||
}
|
||||
}
|
||||
}
|
||||
lineChange.setRemoved(true);
|
||||
}
|
||||
if (strings[i].startsWith("+")) {
|
||||
while ((i < stringsLength) && strings[i].startsWith("+")) {
|
||||
@ -275,6 +276,7 @@ public class GitRepositoryService {
|
||||
}
|
||||
}
|
||||
}
|
||||
lineChange.setAdded(true);
|
||||
}
|
||||
if ((lineChange.getLineTo() != null) || (lineChange.getLineFrom() != null)
|
||||
|| ((lineChange.getLineTo() != null) && (lineChange.getLineFrom() != null))) {
|
||||
|
Loading…
Reference in New Issue
Block a user