|
|
|
[
Permlink
| « Hide
]
Maxim Shafirov - 30 Jun 05 15:05
That only works for private fields since we can't ensure with local scope if the field haven't been used directly in other classes.
I tried private. It also does not work. Specifically, this code does not work:
public class D { See screenshot. Well, that's slighly other use case from what we've been implementing.
public class D { private int q; void d(){ q = 4; System.out.println(q); } void g(){ q = 4; System.out.println(q); } } } more strictly field claimed to be redundant if every method that uses that overwrites its value before any read. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||