You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2019/12/05 14:42:13 UTC

[GitHub] [hadoop-ozone] cxorm opened a new pull request #311: HDDS-2532. Sonar : fix issues in OzoneQuota

cxorm opened a new pull request #311: HDDS-2532. Sonar : fix issues in OzoneQuota
URL: https://github.com/apache/hadoop-ozone/pull/311
 
 
   ## What changes were proposed in this pull request?
   Fix 1.
   ```IllegalArgumentException``` extends ```RuntimeException```.
   We can not throws it cause the kind of ```exception``` would not be checked while compiling.
   
   Fix 2.
   When boxed type ```Boolean``` is used as an expression it will throw ```NullPointerException``` if the value is null.
   It is safer to avoid such conversion.
   
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-2532
   
   ## How was this patch tested?
   Ran on my standalone cluster.

----------------------------------------------------------------
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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org