GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MSHARED-860] deprecate PropertyUtils constructor and clean up docs by elharo · Pull Request #41 · apache/maven-shared-utils

Conversation

@elharo

@elharo elharo commented May 29, 2020

Copy link
Copy Markdown
Contributor

@michael-o

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@elharo
deprecate PropertyUtils constructor and clean up docs
c318195
@elharo
elharo requested a review from michael-o May 29, 2020 10:42
@elharo
deprecate PathUtils constructor
6a81545
michael-o
michael-o requested changes May 29, 2020
View reviewed changes
Comment thread src/main/java/org/apache/maven/shared/utils/PropertyUtils.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

elharo added 3 commits May 29, 2020 07:50
@elharo
Merge branch 'master' into path
d78b113
@elharo
warn about closing streams
87a1903
@elharo
close streams we create
5b6bd1f
michael-o
michael-o approved these changes May 29, 2020
View reviewed changes
@elharo
elharo merged commit a51b3eb into master May 29, 2020
@elharo
elharo deleted the path branch May 29, 2020 14:43
jochenw
jochenw reviewed Jul 21, 2020
View reviewed changes

@jochenw jochenw left a comment

Copy link
Copy Markdown

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.

Question: Doesn't

try ( InputStream in = is )

end with closing the InputStream in (aka is)?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@roxspring

roxspring commented Jul 21, 2020

Copy link
Copy Markdown
Contributor

Question: Doesn't

try ( InputStream in = is )

end with closing the InputStream in (aka is)?

This has already been discussed here:
https://github.com/apache/maven-shared-utils/pull/41/files#r432415800

In short: Yes it closes the InputStream but the original code did too and changing the behaviour would be bad.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jira-importer

jira-importer commented Jul 3, 2025

Copy link
Copy Markdown

Resolve #305

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 11, 2026
[MSHARED-895] PropertiesUtil closes streams it doesn't create #274
Open
[MSHARED-860] Deprecate obsolete functionality #305
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@michael-o michael-o michael-o approved these changes
+1 more reviewer
@jochenw jochenw jochenw left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@elharo @roxspring @jira-importer @michael-o @jochenw
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.