Xie YiFan created YARN-12062:
--------------------------------

             Summary: Remove redundant continue statements in Resources methods
                 Key: YARN-12062
                 URL: https://issues.apache.org/jira/browse/YARN-12062
             Project: Hadoop YARN
          Issue Type: Improvement
            Reporter: Xie YiFan
            Assignee: Xie YiFan


Several methods in {{Resources.java}} use a {{continue}} as the final statement 
in a {{ResourceNotFoundException}} catch block. Since execution naturally 
proceeds to the next loop iteration when the catch block ends, these statements 
are redundant.

Remove the redundant {{continue}} statements from {{{}addTo{}}}, 
{{{}subtractFrom{}}}, {{{}fitsIn{}}}, {{{}componentwiseMin{}}}, and 
{{{}componentwiseMax{}}}. Keep the existing warning logs and preserve behavior.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to