mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java redundant cast: cleanup checks for calls
GitOrigin-RevId: 2d999bc7356856ef7d2fea45f793d69f401f7256
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2d7494d72a
commit
e3bc888dc7
+1
@@ -12,6 +12,7 @@ class CommandTest {
|
||||
public Object getObject1() {
|
||||
Optional<Object> o = Optional.of("x");
|
||||
return o.map(bx -> {
|
||||
int i = (<warning descr="Casting '0' to 'int' is redundant">int</warning>)0;
|
||||
return (<warning descr="Casting 'new Object()' to 'Object' is redundant">Object</warning>)new Object();
|
||||
})
|
||||
.orElse(new Integer(1));
|
||||
|
||||
Reference in New Issue
Block a user