// "Replace Optional.isPresent() condition with map().orElse()" "true" import java.util.*; public class Main { public void testOptional(Optional str) { String val; val = str.map( // line comment // another line comment /* block comment *//*block comment*/String::trim).orElse(""); System.out.println(val); } }