Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary Autowired from Constructors #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tiffanyfay
Copy link

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

Copy link
Author

@tiffanyfay tiffanyfay left a comment

Choose a reason for hiding this comment

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

@c4lm Updated here too.

@@ -24,7 +23,6 @@ public class ArchivingWorkflowListenerProperties {

private final Environment environment;

@Autowired
public ArchivingWorkflowListenerProperties(Environment environment) {
Copy link
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) {

@@ -14,7 +14,6 @@
import java.time.Duration;
import java.time.temporal.ChronoUnit;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
Copy link
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