Menu

#8 explicit this

open
5
2003-01-15
2003-01-15
Anonymous
No

Explciti this references that then send messages can
show up as violations. Here is an example:

public void setClasspath(Path classpath) {
if (this.classpath == null) {
this.classpath = classpath;
} else {
this.classpath.append(classpath);
}
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB