더보기 https://github.com/keesun/study/blob/master/effective-java/item5.md 리소스를 엮을 때는 의존성 주입을 선호하라 public class SpellChecker { private final Lexicon dictionary; public SpellChecker(Lexicon dictionary) { this.dictionary = Objects.requireNonNull(dictionary); } public boolean isValid(String word) { throw new UnsupportedOperationException(); } public List suggestions(String typo) { throw new Unsupporte..