All Questions
3 questions
15
votes
3
answers
30k
views
Is it a good practice to use suppress warnings in your code?
I use @SuppressWarnings("unchecked") and @SuppressWarnings("null") mostly above methods to let the code compile without any warnings but I have my doubts. Found this Stackoverflow question. Jon Skeet ...
-1
votes
2
answers
1k
views
How to validate Exception messages? [closed]
My superior asked me to validate each and every input field in the project that includes the Exception messages. So, am I correct in using Exceptional Handler for validating Exception message.
...
6
votes
2
answers
2k
views
Returning Unmodifiable Collections only tees you up for runtime exceptions?
Seeing as how there are no distinct Unmodifiable Collections interfaces, aren't you just setting yourself up for runtime exceptions by returning Unmodifiable Collections from method invocations? ...