mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java redundant cast: cleanup: extract conditional
GitOrigin-RevId: ca95c0e70c197e27943596e91df8d526bbfbf1bb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
efc6106e02
commit
78891be4bb
+2
@@ -4,6 +4,8 @@ class Main {
|
||||
public static void main(String[] args) {
|
||||
Test test = new Test();
|
||||
((Function<String, Long>)(args.length == 2 ? (<error descr="Method reference expression is not expected here">test::foo</error>) : <error descr="Method reference expression is not expected here">test::bar</error>)).apply("");
|
||||
|
||||
String s = ((<warning descr="Casting '(test != null)' to 'boolean' is redundant">boolean</warning>) (test != null)) ? "a" : "b";
|
||||
}
|
||||
|
||||
static class Test {
|
||||
|
||||
Reference in New Issue
Block a user