Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoodward committed Sep 10, 2024
1 parent 3cefec5 commit 4ad577b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public void end(Context ctx) throws Exception
taskQMap.clear();
}
// now the performables
if (taskPMap.size() > 0)
if (!taskPMap.isEmpty())
{
Curator curator = new Curator();
for (String task : taskPMap.keySet())
Expand All @@ -352,7 +352,7 @@ public void end(Context ctx) throws Exception
}
processDelete(ctx);
}
if (entrySet.size() > 0)
if (!entrySet.isEmpty())
{
taskQueue.enqueue(queueName, entrySet);
}
Expand Down Expand Up @@ -588,7 +588,7 @@ private void mapId(Map<String, Set<String>> map, List<String> tasks, String id)
private void parseTasks(String propName)
{
String taskStr = configurationService.getProperty("replicate.consumer.tasks." + propName);
if (taskStr == null || taskStr.length() == 0)
if (taskStr == null || taskStr.isEmpty())
{
return;
}
Expand Down

0 comments on commit 4ad577b

Please sign in to comment.