Java
Basic building blocks for transforming Java code.
Categories
- AI tools
- Camel
- Dependencies
- Format
- Jackson
- Jspecify
- Liberty
- Logging
- Micronaut
- Modernize
- OpenRewrite best practices
- Search
- Security
- Spring
- Springdoc
- Struts
- Testing
Recipes
- Add ASLv2 license header
- Add a literal method argument
- Add a
null
method argument - Add imports for fully qualified references to types
- Add license header
- Add method parameter to a method declaration
- Add or update annotation attribute
- Change annotation attribute name
- Change method access level
- Change method name
- Change method target to static
- Change method target to variable
- Change static field access to static method access
- Change type
- Create Java class
- Delete method argument
- Demonstrate rendering of
Markup
markers - Order imports
- Randomize tree IDs
- Remove annotation
- Remove annotation attribute
- Remove interface implementations
- Remove method invocations
- Remove static import
- Remove unused imports
- Rename package name
- Reorder method arguments
- Replace String literal with constant
- Replace annotation
- Replace constant with another constant
- Replace constant with literal value
- Simplify a call chain
- Transform calls to
Objects.isNull(..)
andObjects.nonNull(..)
- Update source positions
- Use static import