reugn/default4j

Default parameter values for Java via annotation processing

29
/ 100
Experimental

This tool helps Java developers write cleaner code by adding default values to method parameters, constructor arguments, and record components. It generates helper code at compile time, allowing developers to call methods and constructors with fewer arguments, similar to languages like Python or Kotlin. Java developers, particularly those working with records, immutable objects, or third-party libraries, will find this useful for reducing boilerplate and improving API readability.

Use this if you are a Java developer who wants to define default parameter values for methods, constructors, and records to simplify API calls and reduce the need for manual overloading or builder patterns.

Not ideal if you need runtime dynamic default value resolution that isn't pre-defined at compile-time or if you are not working with Java 17+.

Java development API design Code readability Boilerplate reduction Immutable objects
No Package No Dependents
Maintenance 6 / 25
Adoption 7 / 25
Maturity 13 / 25
Community 3 / 25

How are scores calculated?

Stars

35

Forks

1

Language

Java

License

Apache-2.0

Last pushed

Jan 09, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/reugn/default4j"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.