An example refactoring of the "Gilded Rose Kata" Java edition, from: https://github.com/emilybache/GildedRose-Refactoring-Kata/tree/main/Java
Some of the changes applied to the original code are:
GildedRose.Java
-Eliminated chains of nested if statements
-Moved independent functionalities to individual methods
-Utilize enhanced "for" to iterate
-Applied good programming practices with regard to access permissions (properties/fields)
Navigate to https://github.com/james-things/GildedRose-Java/tree/master/src/main/java/com/gildedrose to start browsing the code revisions.