Lint: 'size() == 0' replaceable with 'isEmpty()'
This commit is contained in:
parent
00b08318a5
commit
773bde14ab
4 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue