Cleanup: use .isEmpty() (except for CharSequence and StringBuilder as it requires SDK33).

This commit is contained in:
Dennis Guse
2025-10-19 18:05:11 +02:00
parent 6c30dd8509
commit ddd1efeb58
4 changed files with 6 additions and 6 deletions
@@ -49,13 +49,13 @@ public class ListItemUtils {
*/
private static String getTimeDistance(String totalTime, String totalDistance) {
StringBuilder builder = new StringBuilder();
if (totalTime != null && totalTime.length() != 0) {
if (totalTime != null && !totalTime.isEmpty()) {
if (builder.length() != 0) {
builder.append(" ‧ ");
}
builder.append(totalTime);
}
if (totalDistance != null && totalDistance.length() != 0) {
if (totalDistance != null && !totalDistance.isEmpty()) {
if (builder.length() != 0) {
builder.append(" ");
}