Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1021 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 1021 Bytes

Refactor Reactor

This project is a demonstration of how we could use Netflix Rewrite to auto-remediate API deprecations for users of Project Reactor. Rewrite makes it possible to automatically fix code in a style-preserving way.

To test-drive:

  1. Run ./gradlew pTML from the project root. This will publish a snapshot jar containing the @AutoRewrite rules to your maven local repository.

  2. cd example.

  3. Run ./gradlew lintSource. This will present the user with a report indicating that there are changes that need to be made:

lintSource

  1. Run ./gradlew fixSourceLint. This will present a similar report as lintSource, but also make the changes to the underlying source files.

fixSourceLint

  1. Run git diff to examine the changes that were made.