Skip to content

Commit

Permalink
Correcting max value demonstration on the Diagnostic View.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariana Azevedo committed Feb 23, 2019
1 parent 752d56f commit 0a617a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/com/o3smeasures/measures/LooseClassCohesion.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public double getMinValue() {
*/
@Override
public double getMaxValue() {
return 0d;
return max;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/com/o3smeasures/plugin/views/SampleView.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public String getText(Object element) {
column.setLabelProvider(new ColumnLabelProvider() {
@Override
public String getText(Object element) {
if ((element instanceof ItemMeasured) && ((ItemMeasured) element).getParent() == null) {
if ((element instanceof ItemMeasured) && ((ItemMeasured) element).getParent() != null) {
return formatter.format(((ItemMeasured) element).getMax());
}
return "";
Expand All @@ -177,7 +177,7 @@ public String getText(Object element) {
column.setLabelProvider(new ColumnLabelProvider() {
@Override
public String getText(Object element) {
if ((element instanceof ItemMeasured) && ((ItemMeasured) element).getParent() == null) {
if ((element instanceof ItemMeasured) && ((ItemMeasured) element).getParent() != null) {
return ((ItemMeasured) element).getClassWithMax();
}
return "";
Expand Down

0 comments on commit 0a617a8

Please sign in to comment.