package io.github.oliviernt;

import java.util.logging.LogManager;
import java.util.logging.Logger;

public class ConditionsAlwaysEvaluatesToTrue {

    private static final Logger LOGGER = LogManager.getLogManager().getLogger(ConditionsAlwaysEvaluatesToTrue.class.getCanonicalName());


    public void thisIsAlwaysTrue() {
        //TODO: add code that always evaluates to true
    }
}

@@ -23,16 +23,42 @@
 iernt;%0A%0A
+import java.util.Objects;%0A
 import j
@@ -86,16 +86,16 @@
 anager;%0A
-
 import j
@@ -348,16 +348,17 @@
 ) %7B%0A
+%0A
         
 //TO
@@ -357,54 +357,565 @@
     
-//TODO: add code that always evaluates to true
+String strA = getString();%0A        String strB = getString();%0A%0A        if (!Objects.equals(strA, strB)) %7B%0A            if (strA == null && strB != null) %7B%0A                LOGGER.info(%22strA is null but strB is not%22);%0A            %7D else if (strA != null && strB == null) %7B%0A                LOGGER.info(%22strA is not null but strB is%22);%0A            %7D else %7B%0A                LOGGER.info(%22neither strA nor strB are null%22);%0A            %7D%0A        %7D%0A    %7D%0A%0A%0A    public static String getString() %7B%0A        return System.currentTimeMillis() %25 2 == 0 ? null : %22a string%22;
 %0A   

Addint always true false positive