-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Fix unused assignment: the value changed at constructorArgNum++
is never used
#35091
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
Conversation
...g-context/src/main/java/org/springframework/scripting/config/ScriptBeanDefinitionParser.java
Outdated
Show resolved
Hide resolved
constructorArgNum++
is never used
...g-context/src/main/java/org/springframework/scripting/config/ScriptBeanDefinitionParser.java
Show resolved
Hide resolved
spring-core/src/main/java/org/springframework/util/xml/DomUtils.java
Outdated
Show resolved
Hide resolved
d0cdf31
to
442f6cf
Compare
please give me a change to improve QA, as dev team does not have resources to take care about quality in details. im here to server the needs of spring. its all related to toleration of chaos, instead of lead by example using proper tooling. |
This comment was marked as off-topic.
This comment was marked as off-topic.
build is not fixing whitespaces like maven or quarkus does.
Assuming its not configured properly to apply mentioned auto fix How to fix these flaws, as not done with Dont want to spend time in whitespaces, thank you.
|
why not forbid import ? and migrate existing? ant:checkstyle] [ERROR] /Users/vincent.potucek/IdeaProjects/spring-framework/spring-context/src/test/java/org/springframework/scripting/config/ScriptBeanDefinitionParserTest.java:17: Please use AssertJ assertions. [junitJupiterAssertions] |
442f6cf
to
2f9ad87
Compare
...text/src/test/java/org/springframework/scripting/config/ScriptBeanDefinitionParserTests.java
Outdated
Show resolved
Hide resolved
thanks for telling me its wrong, but how to fix this? ➜ spring-context git:(fix-The-value-changed-at-'constructorArgNum++'-is-never-used-) gis
[Incubating] Problems report is available at: file:///Users/vincent.potucek/IdeaProjects/spring-framework/build/reports/problems/problems-report.html FAILURE: Build failed with an exception.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.14.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 7s try and error very expensive as its only 1 note, has to be like this: import org.assertj.core.api.InstanceOfAssertFactories; import org.springframework.beans.factory.config.ConstructorArgumentValues.ValueHolder; import static org.assertj.core.api.Assertions.assertThat; |
7300084
to
bcaa1d8
Compare
…ver used Signed-off-by: Vincent Potucek <vpotucek@me.com>
bcaa1d8
to
78ae3d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kindly request some feedback.
Unless you have found an issue while writing a Spring application, I don't think we should invest time in this. |
constructorArgNum++
is never used