You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by GitBox <gi...@apache.org> on 2020/06/10 22:04:13 UTC

[GitHub] [fineract] thesmallstar opened a new pull request #1037: FINERACT-942 Added and Enforced IllegalThrows checkstyle

thesmallstar opened a new pull request #1037:
URL: https://github.com/apache/fineract/pull/1037


   Just curious on this change:
   IllegalThrows:  Declaring that a method throws java.lang.Error or java.lang.RuntimeException is almost never acceptable.
   
   I was doing a bit of research why this is not a good idea, I came across a contradicting statement on this on [link](https://stackabuse.com/exception-handling-in-java-a-complete-guide-with-best-and-worst-practices/ ) : Since we're throwing a runtime exception, there's no need to include it in the method signature, like in the example above, but it's often considered good practice to do so, at least for the sake of documentation. 
   
   Any comments on this @vorburger @xurror @ptuomola ?
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] thesmallstar commented on pull request #1037: FINERACT-942 Added and Enforced IllegalThrows checkstyle

Posted by GitBox <gi...@apache.org>.
thesmallstar commented on pull request #1037:
URL: https://github.com/apache/fineract/pull/1037#issuecomment-642295701


   Also, I will raise a small PR after this is merged adding this change to the readme. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] thesmallstar commented on pull request #1037: FINERACT-942 Added and Enforced IllegalThrows checkstyle

Posted by GitBox <gi...@apache.org>.
thesmallstar commented on pull request #1037:
URL: https://github.com/apache/fineract/pull/1037#issuecomment-642322838


   I Have tried to add checkstyles at random lines so as to avoid merge conflicts, if they still arrive please ignore I will fix them ASAP.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] vorburger merged pull request #1037: FINERACT-942 Added and Enforced IllegalThrows checkstyle

Posted by GitBox <gi...@apache.org>.
vorburger merged pull request #1037:
URL: https://github.com/apache/fineract/pull/1037


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org