mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 01:11:31 +07:00
IDEA-187758 Variable initializer is redundant false-negative with chained constructors IDEA-187756 Variable initializer is redundant false-positive when the value is read before write
15 lines
239 B
Java
15 lines
239 B
Java
class Foo {
|
|
String s = <warning descr="Variable 's' initializer '\"foo\"' is redundant">"foo"</warning>;
|
|
|
|
Foo(String _s) {
|
|
s = _s;
|
|
}
|
|
|
|
Foo() {
|
|
this("foo");
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
new Foo();
|
|
}
|
|
} |