Y
Hacker News
new
|
ask
|
show
|
jobs
by
neatcoder
2500 days ago
For those who are wondering what this refers to, it is writing code like this:
"foo".equals(myVar)
instead of writing:
myVar.equals("foo")
which could can cause NullPointerException if myVar is null.
1 comments
delinka
2500 days ago
you've missed a closing " which makes this read differently than intended
link
neatcoder
2500 days ago
Thanks. Fixed now.
link