Automated Source-Code Refactoring for Framework Migration and Vulnerability Patches
Source code refactoring and framework migrations are necessary steps for maintaining the software. Patching security vulnerabilities would be more difficult with outdated frameworks or libraries. Especially, when migrating to the cloud we have to update to the new version for example Java 8 to 11 or 17 and should make the quality of the code higher as possible. But what if you want to refactor a source code with 300k lines of the code which is not updated in the last ten years, manually updating and refactoring take months and also could be error prone. Here we should think of an automating tool.
OpenRewrite is one such tool that can solve this problem. Of Course this tool needs to be configured and time should be invested to write the specific recipe for the specific problems. Which is way more efficient compared to solving thousands of issues in a big source code.In this talk I would discuss the core concept of open-rewrite, recipes for popular problems with practical Java examples and finally how to write a custom refactoring action.
Die Folien des Vortrags können hier heruntergeladen werden.