1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-04-17 20:31:23 +00:00

Lint: 'size() == 0' replaceable with 'isEmpty()'

This commit is contained in:
TacoTheDank
2020-11-18 17:54:16 -05:00
parent 00b08318a5
commit 773bde14ab
4 changed files with 5 additions and 5 deletions

View File

@@ -81,7 +81,7 @@ public class TabsJsonHelperTest {
private boolean isTabsArrayEmpty(final String returnedJson) throws JsonParserException {
final JsonObject jsonObject = JsonParser.object().from(returnedJson);
assertTrue(jsonObject.containsKey(JSON_TABS_ARRAY_KEY));
return jsonObject.getArray(JSON_TABS_ARRAY_KEY).size() == 0;
return jsonObject.getArray(JSON_TABS_ARRAY_KEY).isEmpty();
}
@Test