Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

Commit

Permalink
PersistanceMode dropped by sonarqube 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Machala committed Mar 8, 2018
1 parent 37daaa3 commit 1e264ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private List<Measure> buildMeasureList(int complexity, double fileComplexity, in
list.add(new Measure(CoreMetrics.FILE_COMPLEXITY, fileComplexity));
RangeDistributionBuilder complexityDistribution = new RangeDistributionBuilder(CoreMetrics.FILE_COMPLEXITY_DISTRIBUTION, FILES_DISTRIB_BOTTOM_LIMITS);
complexityDistribution.add(fileComplexity);
list.add(complexityDistribution.build().setPersistenceMode(PersistenceMode.MEMORY));
list.add(complexityDistribution.build());
return list;
}

Expand Down Expand Up @@ -224,7 +224,7 @@ public List<Measure> buildFunctionMeasuresList(double complexMean, int complexit
List<Measure> list = new ArrayList<Measure>();
list.add(new Measure(CoreMetrics.FUNCTION_COMPLEXITY, complexMean));
list.add(new Measure(CoreMetrics.COMPLEXITY_IN_FUNCTIONS).setIntValue(complexityInFunctions));
list.add(builder.build().setPersistenceMode(PersistenceMode.MEMORY));
list.add(builder.build());
return list;
}

Expand All @@ -249,4 +249,4 @@ public int getCyclomaticComplexity() {
}

}
}
}

0 comments on commit 1e264ed

Please sign in to comment.