Skip to content

Commit

Permalink
unify separated characters in one append method for string builder
Browse files Browse the repository at this point in the history
  • Loading branch information
adem-hassine authored and DamnClin committed Jul 30, 2023
1 parent 8935b74 commit e76dd7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ private static String message(String fieldName, Instant actual, String hint, Ins
.append("Time in \"")
.append(fieldName)
.append("\" ")
.append("having value")
.append(' ')
.append(':')
.append(' ')
.append("having value : ")
.append(actual)
.append(' ')
.append(hint)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ private static String message(String fieldName, Instant actual, String hint, Ins
.append("Time in \"")
.append(fieldName)
.append("\" ")
.append("having value")
.append(' ')
.append(':')
.append(' ')
.append("having value : ")
.append(actual)
.append(' ')
.append(hint)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ public class NotAfterTimeException extends AssertionException {
.append("Time in \"")
.append(fieldName)
.append("\" ")
.append("having value")
.append(' ')
.append(':')
.append(' ')
.append("having value : ")
.append(actual)
.append(' ')
.append(hint)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ public class NotBeforeTimeException extends AssertionException {
.append("Time in \"")
.append(fieldName)
.append("\" ")
.append("having value")
.append(' ')
.append(':')
.append(' ')
.append("having value : ")
.append(actual)
.append(' ')
.append(hint)
Expand Down

0 comments on commit e76dd7d

Please sign in to comment.