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
@@ -880,7 +880,7 @@ public class ChartView extends View {
break;
}
}
if (firstChartValueSeries != null && chartPoints.size() > 0) {
if (firstChartValueSeries != null && !chartPoints.isEmpty()) {
int dx = getX(maxX) - pointer.getIntrinsicWidth() / 2;
double value = firstChartValueSeries.extractDataFromChartPoint(last);
int dy = getY(firstChartValueSeries, value) - pointer.getIntrinsicHeight();