Files
Bas Leijdekkersandintellij-monorepo-bot e5caa802af Java: improve inspection messages
for "Null check can be replaced with method call" inspection

GitOrigin-RevId: ffa45cce88afb341cdeb9a49d4ee256251865bfc
2022-07-22 18:35:53 +00:00

17 lines
476 B
Java

// "Replace conditional expression with 'Objects.requireNonNullElseGet()' call" "INFORMATION"
import java.util.*;
class Test {
static class M {
Object getCodeCache(){return new Object();}
}
static M getProviders() {
return new M();
}
static void test(Object context[], Object method, Object compilationResult) {
Object[] debugContext = (context != null) ? context :<caret> new Object[]{getProviders().getCodeCache(), method, compilationResult};
}
}