タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

annotationとguavaに関するyassのブックマーク (1)

  • Goodbye, checkNotNull - Kengo's blog

    Precondition checking like null-checking is very important element for program, but sometimes it becomes boring because it's a defensive technique and far apart from our purpose -- hacking. nullチェックのような前提条件確認はプログラムにおいて非常に大切な要素ではありますが、防御的であり目的を実現するためのコードではないため、時につまらない作業になりがちです。 public MyClass(String name) { if (name == null) { throw new IllegalArgumentException(); } this.name = name; } Yes, I know

    Goodbye, checkNotNull - Kengo's blog
  • 1