summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-12-07 09:29:57 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-12-07 09:29:57 +0100
commit169c63d511d2f657520c0c301da6ba984fb3b253 (patch)
tree0cce3904cae1454aae27d86dc5d1e1277261334b /plugins
parentd25b9bf9edc9561a6d8917f2c236725d05256053 (diff)
downloadsonarqube-169c63d511d2f657520c0c301da6ba984fb3b253.tar.gz
sonarqube-169c63d511d2f657520c0c301da6ba984fb3b253.zip
Fix some quality flaws
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProfileEventsSensor.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProfileEventsSensor.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProfileEventsSensor.java
index 81fd8710fd4..5347109477c 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProfileEventsSensor.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProfileEventsSensor.java
@@ -49,12 +49,14 @@ public class ProfileEventsSensor implements Sensor {
Measure pastProfileMeasure = getPreviousMeasure(project, CoreMetrics.PROFILE);
if (pastProfileMeasure == null) {
- return; // first analysis
+ // first analysis
+ return;
}
int pastProfileId = pastProfileMeasure.getIntValue();
Measure pastProfileVersionMeasure = getPreviousMeasure(project, CoreMetrics.PROFILE_VERSION);
final int pastProfileVersion;
- if (pastProfileVersionMeasure == null) { // first analysis with versions
+ // first analysis with versions
+ if (pastProfileVersionMeasure == null) {
pastProfileVersion = 1;
} else {
pastProfileVersion = pastProfileVersionMeasure.getIntValue();