Skip to content

Remove unnecessary Autowired from Constructors - #3

Open
tiffanyfay wants to merge 1 commit into
conductor-oss:mainfrom
tiffanyfay:NoAutowiredOnConstructor
Open

tiffanyfay wants to merge 1 commit into
conductor-oss:mainfrom
tiffanyfay:NoAutowiredOnConstructor

Conversation

@tiffanyfay

Copy link
Copy Markdown

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

Changes in this PR

Removed Autowired import/bean
This doesn't change the code behavior/functionality. It's just cleanup.

Describe the new behavior from this PR, and why it's needed
Issue # N/A

Alternatives considered
N/A

Describe alternative implementation you have considered

@tiffanyfay tiffanyfay left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@c4lm Updated here too.

private final Environment environment;

@Autowired
public ArchivingWorkflowListenerProperties(Environment environment) {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public ArchivingWorkflowListenerProperties(Environment environment) {
@Autowired
public ArchivingWorkflowListenerProperties(Environment environment) {

import java.time.temporal.ChronoUnit;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant