You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "simenliuxing (Jira)" <ji...@apache.org> on 2021/04/22 09:28:00 UTC

[jira] [Created] (FLINK-22409) Rename ResourceProfile class throwUnsupportedOperationExecptionIfUnknown method

simenliuxing created FLINK-22409:
------------------------------------

             Summary: Rename ResourceProfile class throwUnsupportedOperationExecptionIfUnknown method
                 Key: FLINK-22409
                 URL: https://issues.apache.org/jira/browse/FLINK-22409
             Project: Flink
          Issue Type: Improvement
          Components: Runtime / Task
    Affects Versions: 1.12.2
            Reporter: simenliuxing
             Fix For: 1.13.0, 1.14.0


throwUnsupportedOperationExecptionIfUnknown method has a mistake name. It should be 'throwUnsupportedOperationExceptionIfUnknown' , and All other references to this method are changed to 'throwUnsupportedOperationExceptionIfUnknown' . 

 

 
{code:java}
// mistake name.
private void throwUnsupportedOperationExecptionIfUnknown() {
    if (this.equals(UNKNOWN)) {
        throw new UnsupportedOperationException();
    }
}

// new
private void throwUnsupportedOperationExceptionIfUnknown() {
    if (this.equals(UNKNOWN)) {
        throw new UnsupportedOperationException();
    }
}

{code}
 

 

 



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