-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: singularize AbstractMojo#createFile(File)
#2395
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
chore: singularize AbstractMojo#createFile(File)
#2395
Conversation
2b1a621 to
92c8a5e
Compare
...s/maven-it-plugin-log-file/src/main/java/org/apache/maven/plugin/coreit/AbstractLogMojo.java
Show resolved
Hide resolved
92c8a5e to
67c3363
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.
checked: https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html
We shouldn’t write code like it’s an ATM—it’s confusing, mimics structure without real purpose, and avoids modern patterns. This approach trades boilerplate for actual business functionality.
...in-active-collection/src/main/java/org/apache/maven/plugin/coreit/CheckThreadSafetyMojo.java
Outdated
Show resolved
Hide resolved
e99e668 to
5355f71
Compare
its/core-it-suite/src/test/resources/mng-2135/plugin/src/main/java/coreit/ItMojo.java
Show resolved
Hide resolved
...s/maven-it-plugin-log-file/src/main/java/org/apache/maven/plugin/coreit/AbstractLogMojo.java
Show resolved
Hide resolved
try can use automatic resource managementtry can use automatic resource management
|
wait for enabler. |
5355f71 to
eec11b0
Compare
elharo
left a comment
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.
I usually skip Draft PRs. When you're happy with it, mark it ready for review.
try can use automatic resource managementtry can use automatic resource management - all
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemUtils.java
Show resolved
Hide resolved
e487cb3 to
a1b6bab
Compare
...en-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java
Show resolved
Hide resolved
...en-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java
Show resolved
Hide resolved
...en-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java
Show resolved
Hide resolved
try can use automatic resource management - allAbstractMojo#mkDirForParentFile(File) to fix try can use automatic resource management
AbstractMojo#mkDirForParentFile(File) to fix try can use automatic resource managementAbstractMojo#mkDirForParentFile(File) central fix try can use automatic resource management
d0a49a5 to
00778d6
Compare
0dec76d to
eb54fda
Compare
elharo
left a comment
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.
In order to avoid wasting time:
- Move PRs out of draft before requesting feedback. Don't ask for review until you think your PR is ready to merge.
- Don't send the same changes in multiple PRs. Stack the branches or wait for the first PR to be merged or closed first.
1c0877c to
3288488
Compare
3288488 to
d7adc15
Compare
AbstractMojo#mkDirForParentFile(File) central fix try can use automatic resource managementAbstractMojo#createNewFile(File) using try-with-resource statement
AbstractMojo#createNewFile(File) using try-with-resource statementAbstractMojo#createNewFile(File)
AbstractMojo#createNewFile(File)AbstractMojo#createFile(File)
AbstractMojo#createFile(File)SOC to give single AbstractMojo#createFile(File)
SOC to give single AbstractMojo#createFile(File)SOC to have single AbstractMojo#createFile(File)
d7adc15 to
9ae5c5e
Compare
|
@slachiewicz kindly request your review. |
SOC to have single AbstractMojo#createFile(File)AbstractMojo#createFile(File)
...plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/EarMojo.java
Show resolved
Hide resolved
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojo.java
Outdated
Show resolved
Hide resolved
AbstractMojo#createFile(File)AbstractMojo#createFile(File)
9ae5c5e to
ed24be1
Compare
|
no just wanted to check ci results but push does reset of course. |
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojo.java
Outdated
Show resolved
Hide resolved
...support/core-it-component/src/main/java/org/apache/maven/coreit/component/MojoCompanion.java
Outdated
Show resolved
Hide resolved
ed24be1 to
4a9dc23
Compare
4a9dc23 to
6c1fbe8
Compare
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.maven.its</groupId> | ||
| <artifactId>core-it-component</artifactId> |
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.
need exception type MojoExecutionException
IOcatch onmkdirs()#239622 times the same code: