Skip to content

Commit 214fed8

Browse files
ddamkeddamke
authored andcommitted
remove last ; after String is build
1 parent b566ac7 commit 214fed8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/de/doubleslash/keeptime/view/ProjectReport.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ public void appendToWorkNotes(final String currentWorkNote) {
4949
} else {
5050
LOG.debug("Skipping empty note.");
5151
}
52+
53+
if(numberOfNotes==this.size){
54+
int lastSemiColonIndex = this.sb.lastIndexOf(";");
55+
if (lastSemiColonIndex != -1) {
56+
this.sb.deleteCharAt(lastSemiColonIndex);
57+
this.sb.setLength(this.sb.length()-1); //Removes a blank space at the end
58+
}
59+
}
5260
}
5361

5462
public int getNumberOfNotes() {

0 commit comments

Comments
 (0)