Lines 58-63
Link Here
|
58 |
} |
58 |
} |
59 |
|
59 |
|
60 |
private void acceptName(char[] name) { |
60 |
private void acceptName(char[] name) { |
|
|
61 |
// the null check is added to fix bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=166570 |
62 |
if (name != null) return; |
63 |
|
61 |
if (acceptedNames.includes(name)) return; |
64 |
if (acceptedNames.includes(name)) return; |
62 |
|
65 |
|
63 |
this.acceptedNames.add(name); |
66 |
this.acceptedNames.add(name); |
Lines 411-416
Link Here
|
411 |
int i = indexOfFisrtNameAfter(start); |
414 |
int i = indexOfFisrtNameAfter(start); |
412 |
done : while (i != -1) { |
415 |
done : while (i != -1) { |
413 |
int nameStart = this.potentialVariableNameStarts[i]; |
416 |
int nameStart = this.potentialVariableNameStarts[i]; |
|
|
417 |
// the null check is added to fix bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=166570 |
414 |
if (start < nameStart && nameStart < end) { |
418 |
if (start < nameStart && nameStart < end) { |
415 |
this.acceptName(this.potentialVariableNames[i]); |
419 |
this.acceptName(this.potentialVariableNames[i]); |
416 |
this.removeNameAt(i); |
420 |
this.removeNameAt(i); |