[ 
https://issues.apache.org/jira/browse/HDDS-2483?focusedWorklogId=344469&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-344469
 ]

ASF GitHub Bot logged work on HDDS-2483:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Nov/19 18:30
            Start Date: 15/Nov/19 18:30
    Worklog Time Spent: 10m 
      Work Description: insideo commented on pull request #184: HDDS-2483. Fix 
Sonar warnings in HddsUtils
URL: https://github.com/apache/hadoop-ozone/pull/184
 
 
   ## What changes were proposed in this pull request?
   
   Add explicit return statements to each case branch to fix Sonar warnings.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-2483
   
   ## How was this patch tested?
   
   Ran local unit tests and rat, findbugs, checkstyle.
 
----------------------------------------------------------------
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:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 344469)
    Remaining Estimate: 0h
            Time Spent: 10m

> Avoid fall-through in HddsUtils#getBlockID
> ------------------------------------------
>
>                 Key: HDDS-2483
>                 URL: https://issues.apache.org/jira/browse/HDDS-2483
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Attila Doroszlai
>            Assignee: Craig Condit
>            Priority: Minor
>              Labels: pull-request-available, sonar
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {{switch}} in {{HddsUtils#getBlockID}} has potential fall-through.  It should 
> be handled explicitly (eg. throw exception or {{return null}}).
> * 
> https://sonarcloud.io/project/issues?id=hadoop-ozone&issues=AW5md-4qKcVY8lQ4ZsPe&open=AW5md-4qKcVY8lQ4ZsPe
> * 
> https://sonarcloud.io/project/issues?id=hadoop-ozone&issues=AW5md-4qKcVY8lQ4ZsPf&open=AW5md-4qKcVY8lQ4ZsPf
> * 
> https://sonarcloud.io/project/issues?id=hadoop-ozone&issues=AW5md-4qKcVY8lQ4ZsPg&open=AW5md-4qKcVY8lQ4ZsPg
> * 
> https://sonarcloud.io/project/issues?id=hadoop-ozone&issues=AW5md-4qKcVY8lQ4ZsPh&open=AW5md-4qKcVY8lQ4ZsPh
> * 
> https://sonarcloud.io/project/issues?id=hadoop-ozone&issues=AW5md-4qKcVY8lQ4ZsPi&open=AW5md-4qKcVY8lQ4ZsPi
> * 
> https://sonarcloud.io/project/issues?id=hadoop-ozone&issues=AW5md-4qKcVY8lQ4ZsPj&open=AW5md-4qKcVY8lQ4ZsPj



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to