[ 
https://issues.apache.org/jira/browse/FLINK-6495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16196719#comment-16196719
 ] 

ASF GitHub Bot commented on FLINK-6495:
---------------------------------------

Github user pnowojski commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4774#discussion_r143416489
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/configuration/IllegalConfigurationException.java
 ---
    @@ -42,6 +42,17 @@ public IllegalConfigurationException(String message) {
     
        /**
         * Constructs an new IllegalConfigurationException with the given error 
message
    +    * format and arguments.
    +    *
    +    * @param format The error message format for the exception.
    +    * @param arguments The arguments for the format.
    +    */
    +   public IllegalConfigurationException(String format, Object... 
arguments) {
    --- End diff --
    
    Convenience - reduces boiler plate. I prefer this:
    ```
    throw new IllegalConfigurationException("%s %s", foo, bar);
    ```
    to that:
    ```
    throw new IllegalConfigurationException(String.format("%s %s", foo, bar));
    ```
    same as it is done in loggers.


> Migrate Akka configuration options
> ----------------------------------
>
>                 Key: FLINK-6495
>                 URL: https://issues.apache.org/jira/browse/FLINK-6495
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Distributed Coordination, Network
>            Reporter: Chesnay Schepler
>            Assignee: Fang Yong
>             Fix For: 1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to