chore: singularize AbstractMojo#createFile(File)#2395
Closed
Pankraz76 wants to merge 1 commit intoapache:masterfrom
Closed
chore: singularize AbstractMojo#createFile(File)#2395Pankraz76 wants to merge 1 commit intoapache:masterfrom
AbstractMojo#createFile(File)#2395Pankraz76 wants to merge 1 commit intoapache:masterfrom
Conversation
2b1a621 to
92c8a5e
Compare
Pankraz76
commented
May 27, 2025
...s/maven-it-plugin-log-file/src/main/java/org/apache/maven/plugin/coreit/AbstractLogMojo.java
Show resolved
Hide resolved
92c8a5e to
67c3363
Compare
Pankraz76
commented
May 27, 2025
Contributor
Author
There was a problem hiding this comment.
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
Pankraz76
commented
May 27, 2025
its/core-it-suite/src/test/resources/mng-2135/plugin/src/main/java/coreit/ItMojo.java
Show resolved
Hide resolved
elharo
reviewed
May 27, 2025
...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
Contributor
Author
|
wait for enabler. |
5355f71 to
eec11b0
Compare
elharo
reviewed
May 28, 2025
Contributor
elharo
left a comment
There was a problem hiding this comment.
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
Pankraz76
commented
May 31, 2025
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemUtils.java
Show resolved
Hide resolved
e487cb3 to
a1b6bab
Compare
Pankraz76
commented
May 31, 2025
...en-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java
Show resolved
Hide resolved
elharo
requested changes
May 31, 2025
...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
9 tasks
Pankraz76
commented
May 31, 2025
.../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
reviewed
Jun 1, 2025
Contributor
elharo
left a comment
There was a problem hiding this comment.
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
Contributor
Author
|
@slachiewicz kindly request your review. |
SOC to have single AbstractMojo#createFile(File)AbstractMojo#createFile(File)
Pankraz76
commented
Jun 9, 2025
...plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/EarMojo.java
Show resolved
Hide resolved
elharo
requested changes
Jun 9, 2025
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
Contributor
Author
|
no just wanted to check ci results but push does reset of course. |
elharo
requested changes
Jun 9, 2025
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
9 tasks
ed24be1 to
4a9dc23
Compare
4a9dc23 to
6c1fbe8
Compare
Pankraz76
commented
Jun 9, 2025
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.maven.its</groupId> | ||
| <artifactId>core-it-component</artifactId> |
Contributor
Author
There was a problem hiding this comment.
need exception type MojoExecutionException
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IOcatch onmkdirs()#239622 times the same code: