Inspection and hightlighting bug ... Call to simple getter

If method locates at Constructor.. and conscructor has value with such name IDEA forget to insert "this"
Example
BEFORE

class TXComponent{
private Project project;
private TXXForm parentForm;
public TXComponent(Project project, String name) {
setProject(project);
setName(name);
}
public final Project getProject() {
return project;
}
}
AFTER
class TXComponent{
private Project project;

public TXComponent(Project project) {
project = project; //INCORRECT
}
public final Project getProject() {
return project;
}
}
instead of
class TXComponent{
private Project project;

public TXComponent(Project project) {
this.project = project; //CORRECT
}
public final Project getProject() {
return project;
}
}

1 comment
Comment actions Permalink

Already fixed in the next build. Sorry for the inconvenience.

In the future, please submit bug reports to http://jetbrains.net/jira.

--Dave Griffith

0

Please sign in to leave a comment.