Scratch Where It's Itching

David Shay's blog on Java, Python, AWS or any other center of interest

Monday, March 27, 2023

Am I Null?

This article was originally posted on JRoller on November 4, 2011.

If Shakespeare were a developer, his Hamlet class' comparison method would probably contain these lines:

    if (obj == null)
      return (this == null);

Found in our production code. The Java equivalent of "To be or not to be [null]".


Posted by David Shay at 9:27 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Horror code, java, jroller
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

David Shay
View my complete profile

Search This Blog

Blog Archive

  • ►  2025 (1)
    • ►  April (1)
  • ►  2024 (6)
    • ►  October (1)
    • ►  July (2)
    • ►  April (1)
    • ►  March (2)
  • ▼  2023 (34)
    • ►  November (3)
    • ►  October (4)
    • ►  August (2)
    • ►  July (3)
    • ►  June (13)
    • ►  April (1)
    • ▼  March (1)
      • Am I Null?
    • ►  February (3)
    • ►  January (4)
  • ►  2022 (13)
    • ►  December (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  June (2)
    • ►  May (1)
    • ►  April (3)
    • ►  March (1)
    • ►  February (2)
  • ►  2021 (5)
    • ►  September (1)
    • ►  August (1)
    • ►  April (2)
    • ►  February (1)
  • ►  2020 (11)
    • ►  December (1)
    • ►  November (1)
    • ►  June (1)
    • ►  April (2)
    • ►  March (6)
  • ►  2019 (1)
    • ►  September (1)
  • ►  2018 (8)
    • ►  December (1)
    • ►  June (1)
    • ►  February (3)
    • ►  January (3)
  • ►  2017 (13)
    • ►  December (5)
    • ►  November (5)
    • ►  October (3)

Total Pageviews

Powered by Blogger.