Skip to content

Commit

Permalink
Issue #218 Added missing annotations
Browse files Browse the repository at this point in the history
- without @ScannerSide the sonar plugin fails to initialize at the time of build
  • Loading branch information
dmatej authored and KengoTODA committed Nov 7, 2018
1 parent b98252e commit 544c5c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/sonar/plugins/findbugs/FindbugsPlugin.java
Expand Up @@ -57,10 +57,10 @@ public void define(Context context) {
JspSyntaxSensor.class,

FindbugsSensor.class,
FindbugsConfiguration.class,
FindbugsExecutor.class,
FindbugsProfileExporter.class,
FindbugsProfileImporter.class,
FindbugsConfiguration.class,
FindbugsExecutor.class,

FindbugsProfile.class,
FindbugsContribProfile.class,
Expand Down
Expand Up @@ -20,6 +20,8 @@
package org.sonar.plugins.findbugs;

import com.thoughtworks.xstream.XStream;

import org.sonar.api.batch.ScannerSide;
import org.sonar.api.profiles.ProfileExporter;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.rules.ActiveRule;
Expand All @@ -33,6 +35,7 @@
import java.io.Writer;
import java.util.stream.Collectors;

@ScannerSide
public class FindbugsProfileExporter extends ProfileExporter {

public FindbugsProfileExporter() {
Expand Down
Expand Up @@ -24,6 +24,7 @@
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sonar.api.batch.ScannerSide;
import org.sonar.api.profiles.ProfileImporter;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.rule.Severity;
Expand All @@ -43,6 +44,7 @@
import java.io.Reader;
import java.util.Map;

@ScannerSide
public class FindbugsProfileImporter extends ProfileImporter {

private final RuleFinder ruleFinder;
Expand Down

0 comments on commit 544c5c2

Please sign in to comment.