Skip to content

Commit 0a617a8

Browse files
author
Mariana Azevedo
committed
Correcting max value demonstration on the Diagnostic View.
1 parent 752d56f commit 0a617a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/com/o3smeasures/measures/LooseClassCohesion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public double getMinValue() {
7272
*/
7373
@Override
7474
public double getMaxValue() {
75-
return 0d;
75+
return max;
7676
}
7777

7878
/**

src/com/o3smeasures/plugin/views/SampleView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public String getText(Object element) {
166166
column.setLabelProvider(new ColumnLabelProvider() {
167167
@Override
168168
public String getText(Object element) {
169-
if ((element instanceof ItemMeasured) && ((ItemMeasured) element).getParent() == null) {
169+
if ((element instanceof ItemMeasured) && ((ItemMeasured) element).getParent() != null) {
170170
return formatter.format(((ItemMeasured) element).getMax());
171171
}
172172
return "";
@@ -177,7 +177,7 @@ public String getText(Object element) {
177177
column.setLabelProvider(new ColumnLabelProvider() {
178178
@Override
179179
public String getText(Object element) {
180-
if ((element instanceof ItemMeasured) && ((ItemMeasured) element).getParent() == null) {
180+
if ((element instanceof ItemMeasured) && ((ItemMeasured) element).getParent() != null) {
181181
return ((ItemMeasured) element).getClassWithMax();
182182
}
183183
return "";

0 commit comments

Comments
 (0)