<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Refactor on Omkar Shetkar</title><link>https://omkarshetkar.netlify.app/tags/refactor/</link><description>Recent content in Refactor on Omkar Shetkar</description><generator>Hugo -- 0.152.2</generator><language>en-us</language><lastBuildDate>Sat, 11 Apr 2026 19:00:00 +0530</lastBuildDate><atom:link href="https://omkarshetkar.netlify.app/tags/refactor/index.xml" rel="self" type="application/rss+xml"/><item><title>Code Refactoring Made Easy with OpenRewrite</title><link>https://omkarshetkar.netlify.app/posts/code-refactor-openrewrite/</link><pubDate>Sat, 11 Apr 2026 19:00:00 +0530</pubDate><guid>https://omkarshetkar.netlify.app/posts/code-refactor-openrewrite/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Change is the only constant and this is very true for code.
Code changes because of changes in requirements, changes in third-part library dependencies, frequent security vulnerabilities etc.
Few changes need significant refactoring across the code base. For example, consider migrating a Spring Boot application from 3.5 to 4.0.
This is a major change with significant effort. This potentially may cause regression if not done properly.
To make larger code refactoring easier, we need &lt;strong&gt;deterministic&lt;/strong&gt; and &lt;strong&gt;reliable&lt;/strong&gt; tool.
For this, I came across &lt;a href="https://docs.openrewrite.org/" target="_blank" rel="noopener" &gt;OpenRewrite&lt;/a&gt; as an appropriate tool.
It&amp;rsquo;s an open source automated code refactoring tool.
It supports various refactorings like library updates, security vulnerability fixing, clean code updates etc.&lt;/p&gt;</description></item></channel></rss>