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
@@ -88,7 +88,7 @@ public class DescriptionGenerator {
* @param lineBreak the line break
*/
private void writeString(String text, StringBuilder builder, int resId, String lineBreak) {
if (text == null || text.length() == 0) {
if (text == null || text.isEmpty()) {
text = context.getString(R.string.value_unknown);
}
builder.append(context.getString(resId, text));