| Issue 58: | PMD coverage | |
| Back to list |
|
Ive completed the pmd coverage of the code and most issues have been removed however there is about 20 which have the following issue
= a method should have only one exit point, and that should be the last statement ing the method
this is due to the fact that some methods are like the following
try
{
return .....
}
else
{
return null
}
or the equivlant i think we should just ignore this for now as i doubt its possible to write some of these functions without a similar format
Sep 22, 2011
talked to hussain and now have a way to fix this will begin work on it later today
Status:
Started
Oct 13, 2011
done
Status:
Done
|
||||||||||
you could do it this way Object result=null; try{ //;;;;;;;;;;;;;;;;;;; result = value 1 }catch(Exception){ //;;;;;;;;;;;;;;;;;; result=value2; } return result;