Skip to content

Conversation

@Pankraz76
Copy link
Contributor

@Pankraz76 Pankraz76 commented May 27, 2025

@Pankraz76 Pankraz76 closed this May 27, 2025
@Pankraz76 Pankraz76 reopened this May 27, 2025
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch 2 times, most recently from 2b1a621 to 92c8a5e Compare May 27, 2025 10:52
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from 92c8a5e to 67c3363 Compare May 27, 2025 10:59
Copy link
Contributor Author

@Pankraz76 Pankraz76 left a 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.

@Pankraz76 Pankraz76 marked this pull request as ready for review May 27, 2025 11:05
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch 2 times, most recently from e99e668 to 5355f71 Compare May 27, 2025 11:07
@Pankraz76 Pankraz76 changed the title try can use automatic resource management try can use automatic resource management May 27, 2025
@Pankraz76 Pankraz76 marked this pull request as draft May 27, 2025 20:30
@Pankraz76
Copy link
Contributor Author

Pankraz76 commented May 27, 2025

wait for enabler.

@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from 5355f71 to eec11b0 Compare May 28, 2025 09:07
Copy link
Contributor

@elharo elharo left a 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.

@Pankraz76 Pankraz76 changed the title try can use automatic resource management try can use automatic resource management - all May 28, 2025
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from e487cb3 to a1b6bab Compare May 31, 2025 09:44
@Pankraz76 Pankraz76 changed the title try can use automatic resource management - all Add method AbstractMojo#mkDirForParentFile(File) to fix try can use automatic resource management May 31, 2025
@Pankraz76 Pankraz76 changed the title Add method AbstractMojo#mkDirForParentFile(File) to fix try can use automatic resource management Add method AbstractMojo#mkDirForParentFile(File) central fix try can use automatic resource management Jun 1, 2025
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from d0a49a5 to 00778d6 Compare June 1, 2025 15:54
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from 0dec76d to eb54fda Compare June 1, 2025 16:10
Copy link
Contributor

@elharo elharo left a 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:

  1. Move PRs out of draft before requesting feedback. Don't ask for review until you think your PR is ready to merge.
  2. Don't send the same changes in multiple PRs. Stack the branches or wait for the first PR to be merged or closed first.

@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch 2 times, most recently from 1c0877c to 3288488 Compare June 3, 2025 16:47
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from 3288488 to d7adc15 Compare June 9, 2025 12:27
@Pankraz76 Pankraz76 changed the title Add method AbstractMojo#mkDirForParentFile(File) central fix try can use automatic resource management chore: centralize AbstractMojo#createNewFile(File) using try-with-resource statement Jun 9, 2025
@Pankraz76 Pankraz76 changed the title chore: centralize AbstractMojo#createNewFile(File) using try-with-resource statement chore: centralize AbstractMojo#createNewFile(File) Jun 9, 2025
@Pankraz76 Pankraz76 changed the title chore: centralize AbstractMojo#createNewFile(File) chore: centralize AbstractMojo#createFile(File) Jun 9, 2025
@Pankraz76 Pankraz76 changed the title chore: centralize AbstractMojo#createFile(File) chore: apply SOC to give single AbstractMojo#createFile(File) Jun 9, 2025
@Pankraz76 Pankraz76 changed the title chore: apply SOC to give single AbstractMojo#createFile(File) chore: apply SOC to have single AbstractMojo#createFile(File) Jun 9, 2025
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from d7adc15 to 9ae5c5e Compare June 9, 2025 12:34
@Pankraz76 Pankraz76 marked this pull request as ready for review June 9, 2025 12:34
@Pankraz76 Pankraz76 requested a review from elharo June 9, 2025 12:34
@Pankraz76
Copy link
Contributor Author

@slachiewicz kindly request your review.

@Pankraz76 Pankraz76 changed the title chore: apply SOC to have single AbstractMojo#createFile(File) chore: promote central AbstractMojo#createFile(File) Jun 9, 2025
@Pankraz76 Pankraz76 changed the title chore: promote central AbstractMojo#createFile(File) chore: singularize AbstractMojo#createFile(File) Jun 9, 2025
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from 9ae5c5e to ed24be1 Compare June 9, 2025 13:09
@Pankraz76
Copy link
Contributor Author

no just wanted to check ci results but push does reset of course.

@Pankraz76 Pankraz76 requested a review from elharo June 9, 2025 13:10
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from ed24be1 to 4a9dc23 Compare June 9, 2025 21:21
@Pankraz76 Pankraz76 force-pushed the can-use-automatic-resource-management- branch from 4a9dc23 to 6c1fbe8 Compare June 9, 2025 21:22
<dependencies>
<dependency>
<groupId>org.apache.maven.its</groupId>
<artifactId>core-it-component</artifactId>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

need exception type MojoExecutionException

@Pankraz76 Pankraz76 requested a review from elharo June 9, 2025 21:23
@slachiewicz slachiewicz closed this Jun 9, 2025
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.

3 participants