Skip to content

LearnWithLlew/EarlyReturnKata.java

Repository files navigation

Refactoring Early Returns

Build Status

2 Practice Exercises for Refactoring Early Returns in Java.

Steps for refactoring

  1. Add nullable return
    1. set value
    2. if != null return
    3. move if
    4. add else
    5. invert if
    6. repeat until all returns are at the end
  2. clean up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published