Skip to content

Commit

Permalink
Add Autowired annotation to suppress warning for IDE for autowired be…
Browse files Browse the repository at this point in the history
…an injection due to external dependency
  • Loading branch information
casstait committed Sep 5, 2021
1 parent 7ec09f1 commit 8a12b71
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class TeamCityBuildListener extends BuildServerAdapter {
private static final String ENDPOINT = TeamCityProperties.getProperty(PluginConstants.PROPERTY_KEY_ENDPOINT);

@Autowired
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
public TeamCityBuildListener(EventDispatcher<BuildServerListener> buildServerListenerEventDispatcher) {
buildServerListenerEventDispatcher.addListener(this);
Loggers.SERVER.info("OTEL_PLUGIN: OTEL_PLUGIN: BuildListener registered.");
Expand Down

0 comments on commit 8a12b71

Please sign in to comment.