#Java has evolved. Your code can too.

https://javaevolved.github.io/

java.evolved Code Snippets | java.evolved

A collection of modern Java code snippets. Every old Java pattern next to its clean, modern replacement — side by side.

java.evolved

@frankel some good stuff in there. Would be cool if Java came with some similar tool like the new go fix: https://pkg.go.dev/cmd/fix

I find it a very modern approach for the language designers to consider the whole lifecycle of an application: "Hey we added a new feature, of course we help you to add it to your code base". Just like modern languages like rust and go already come with a package manager, formatter, linter etc.

fix command - cmd/fix - Go Packages

Fix is a tool executed by "go fix" to update Go programs that use old features of the language and library and rewrite them to use newer ones.

@campfireman The only tool I know of that plays the same role is #OpenRewrite https://docs.openrewrite.org/
OpenRewrite by Moderne | Large Scale Automated Refactoring | OpenRewrite Docs

Large-scale automated source code refactoring

@frankel Thanks for the tip, that looks very useful, much broader scope! Could have saved quite some time with the Java 8 -> 17 and SpringBoot 2 -> 3 tooling at my previous job