Skip to content

Commit 1363404

Browse files
committed
Use isEmpty() instead of size check
1 parent d671542 commit 1363404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/aquality/selenium/core/visualization/DumpManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ public float compare(String dumpName) {
6969
private void logUnprocessedElements(int countOfUnprocessedElements, Map<String, T> existingElements, List<String> absentOnFormElementNames) {
7070
if (countOfUnprocessedElements > 0)
7171
{
72-
if (existingElements.size() > 0)
72+
if (!existingElements.isEmpty())
7373
{
7474
localizedLogger.warn("loc.form.dump.elementsmissedindump", String.join(", ", existingElements.keySet()));
7575
}
76-
if (absentOnFormElementNames.size() > 0)
76+
if (!absentOnFormElementNames.isEmpty())
7777
{
7878
localizedLogger.warn("loc.form.dump.elementsmissedonform", String.join(", ", absentOnFormElementNames));
7979
}

0 commit comments

Comments
 (0)