Skip to content

Commit 23f2c2c

Browse files
Fix minor sonarlint issues
1 parent f9bbe16 commit 23f2c2c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/engineer/nightowl/sonos/api/SonosApiClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.slf4j.LoggerFactory;
2323

2424
import java.io.IOException;
25-
import java.net.http.HttpClient;
2625
import java.util.Properties;
2726

2827
public class SonosApiClient implements AutoCloseable

src/main/java/engineer/nightowl/sonos/api/resource/GroupResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ public SonosGroupInfo modifyGroupMembers(final String clientToken, final String
9393
final List<String> playerIdsToRemove) throws SonosApiClientException, SonosApiError
9494
{
9595
final Map<String, Object> payload = new HashMap<>();
96-
if (playerIdsToAdd != null && playerIdsToAdd.size() > 0)
96+
if (playerIdsToAdd != null && !playerIdsToAdd.isEmpty())
9797
{
9898
payload.put("playerIdsToAdd", playerIdsToAdd);
9999
}
100-
if (playerIdsToRemove != null && playerIdsToRemove.size() > 0)
100+
if (playerIdsToRemove != null && !playerIdsToRemove.isEmpty())
101101
{
102102
payload.put("playerIdsToRemove", playerIdsToRemove);
103103
}

0 commit comments

Comments
 (0)