reugn/default4j
Default parameter values for Java via annotation processing
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+.
Stars
35
Forks
1
Language
Java
License
Apache-2.0
Category
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.
Higher-rated alternatives
square/kotlinpoet
A Kotlin API for generating .kt source files.
dromara/fast-request
IntelliJ IDEA plugin Fast Request
ZacSweers/MoshiX
Extensions for Moshi including IR plugins, moshi-sealed, and more.
Kotlin/kotlinx-schema
Kotlin Multiplatform library that generates JSON Schemas from your methods and classes both at...
cnrture/QuickProjectWizard
🚀 Ultimate Android development companion for Android Studio. Create projects with modern...