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

    https://github.com/apache/drill/pull/1099#discussion_r164012734
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/ssl/SSLConfigClient.java ---
    @@ -94,7 +94,7 @@ private String getStringProperty(String name, String 
defaultValue) {
       private int getIntProperty(String name, int defaultValue) {
         int value = defaultValue;
         if ( (properties != null) && (properties.containsKey(name))) {
    -      value = new Integer(properties.getProperty(name)).intValue();
    +      value = Integer.valueOf(properties.getProperty(name)).intValue();
    --- End diff --
    
    ```
        if (properties != null) {
          String property = properties.getProperty(name);
          if (property != null && property.length() > 0) {
            value = Integer.decode(property);
          }
    ```


---

Reply via email to