Skip to content
Permalink
Browse files
Use isEmpty instead of comparing length to zero
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent 18f4da2 commit cc792fb6dc4332571b7300eb9e3075de3d68d3a5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -533,7 +533,7 @@ private static StringBuilder equalsComparisonText(final String received, final S
String compDeltaSeq;
String endingEqSeq = trunc(true, received.substring(lastRecDiff + 1, recLength));
String recDeltaSeq;
if (endingEqSeq.length() == 0) {
if (endingEqSeq.isEmpty()) {
recDeltaSeq = trunc(true, received.substring(firstDiff, recLength));
compDeltaSeq = trunc(true, comparison.substring(firstDiff, compLength));
} else {

0 comments on commit cc792fb

Please sign in to comment.