Skip to content

Use caching methods for system properties - #187

Merged
elharo merged 2 commits into
masterfrom
prop
Mar 5, 2025
Merged

elharo merged 2 commits into
masterfrom
prop

Conversation

@elharo

@elharo elharo commented Feb 26, 2025

Copy link
Copy Markdown
Contributor

Minor improvement that avoids repeated lookups of system properties and is a little more direct in code

@elharo
elharo marked this pull request as ready for review February 26, 2025 18:39
@elharo
elharo requested a review from michael-o February 28, 2025 12:31
* @deprecated use {@code java.nio.charset.Charset.getDefaultCharset()}
*/
@Deprecated
public static final String FILE_ENCODING = System.getProperty("file.encoding");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is even a non-public property...

@elharo
elharo merged commit a36de07 into master Mar 5, 2025
@elharo
elharo deleted the prop branch March 5, 2025 12:05
@slachiewicz slachiewicz added this to the 3.5.0 milestone Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants