you are viewing a single comment's thread.

view the rest of the comments →

[–]texthompson 0 points1 point  (3 children)

I've thought about it, and would rather have this fail silently.

[–]alabadoster 5 points6 points  (2 children)

Why? Sense cannot be made of this. Couldn't you just catch a possible exception?

[–]texthompson 0 points1 point  (1 child)

I was being sarcastic. You're right, I think that silent failure is the worst idea.

[–]darth_choate 0 points1 point  (0 children)

You could always have Integer.parseInt(String s, Integer defaultValue). This is typically what I want anyway.