Skip to content

try can use automatic resource management - all #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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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
@@ -78,22 +78,13 @@ protected void append(Object value) throws MojoExecutionException {
File file = getLogFile();
getLog().info("[MAVEN-CORE-IT-LOG] Updating log file: " + file);
Copy link
Contributor

Choose a reason for hiding this comment

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

don't need all these log statements

Copy link
Contributor Author

@Pankraz76 Pankraz76 May 27, 2025

Choose a reason for hiding this comment

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

all all or just some, as partly addressed in enabler?

@Pankraz76 Pankraz76 changed the title try can use automatic resource management try can use automatic resource management May 27, 2025
@Pankraz76
Copy link
Contributor Author

might be flaky, as only one time and works on dev:

image image

kind of NPE everywhere.

image

@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
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.

2 participants