Refactor exception handling
Opened this issue · 3 comments
alex-anakin commented
Begin is in class MailBuilderUtil
in BuildXmlFromUserOtp(User user, OneTimePassword oneTimePassword)
method. Exception 'java.io.IOException' is never thrown in the method.
Then move by methods usages chain. Whenever you see throws Exception
it need to refactor code. Exception
is too broad, masking specific exceptions.
IgorMaksymov commented
@AndriyBaibak time spent: 3h
IgorMaksymov commented
@romach @vaa25 @alex-anakin also i removed antipatterns that discribed here
https://community.oracle.com/docs/DOC-983543
IgorMaksymov commented
@AndriyBaibak time spent: 1h