Skip to content

Commit

Permalink
Equality check rather than address comparison in setMetricType.
Browse files Browse the repository at this point in the history
  • Loading branch information
cderoove committed Jan 24, 2013
1 parent 2a07c89 commit d9a6f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExapusRAP/src/exapus/model/view/View.java
Expand Up @@ -150,7 +150,7 @@ public MetricType getMetricType() {
} }


public void setMetricType(MetricType metricType) { public void setMetricType(MetricType metricType) {
if(this.metricType != metricType) { if(!metricType.equals(this.metricType)) {
this.metricType = metricType; this.metricType = metricType;
makeDirty(); makeDirty();
} }
Expand Down

0 comments on commit d9a6f86

Please sign in to comment.