Community
Participate
Working Groups
20030506 void f(int[] numbers){ int number= n<CODE ASSIST HERE> } 'number' should not be suggested because it's unitialized and i will get a compile error right away for simplicity, code assist could just handle this one case, i.e. a local variable declaration (don't suggest the variable's name in the variable's initializer)
int number = number = 0; This is legal code. On the right-hand side, 'number' should not be proposed as the best match though. David - pls verify.
it's especially annoying in scenarios like this (which i stuble upon over and over): void foo(Bar[] bars){ for(int i= 0; i < bars.length; i++){ Bar bar= b<CODE ASSSIST> } } it suggests 'bar' as first, while i clearly want 'bars' to be the first on that list
We could give an higher relevance for an array variable ("bars"). We could give the smallest relevance for the initialized variable ("bar").
Last suggestion got implemented and does the trick.