Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Allow Property impl to transform value before setting

Open
#355 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
tooling

Research direction

Start with Property#isValidValue and the SettingsManager path used when an application sets a value. Inspect LowercaseStringSetProperty, collection properties, and InlineArrayProperty to compare resource loading with programmatic setting. Done requires an agreed transformation or rejection behavior for these cases, with tests covering the resulting behavior.

Written by the indexing model from the issue text.

Description

architecture

A property like LowercaseStringSetProperty or any other property type where not every value of the Java type is considered valid, proper validation/transformation happens when values are loaded from the resource, but if a property's value is programmatically set later on, no such validation occurs. While there is Property#isValidValue and it gets called when a value is set, this makes the SettingsManager throw an exception if it's false.

Ideally, values are valid when the application sets them for a property, but it might make sense to promote the idea that properties manage their values a bit more by maybe allowing the property to slightly transform the value (or throw if the value is unusable) also when a property's value is set by the application.

Examples:

  • A set with upper-case text is set for a LowercaseStringSetProperty
  • A collection is provided for any collection property where one of the entries is null (I believe nothing checks this at all at the moment)
  • InlineArrayProperty does not escape the chosen delimiter in the value -> would need to be done by the developer himself
Dominant language
Java
Stars
44
Forks
21
Avg merge
7d 11h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AuthMe/ConfigMe

All issues in AuthMe/ConfigMe

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.