Daniel Stieglitz created NIFI-14762:
---------------------------------------

             Summary: Replaced deprecated method defaultIfNull of 
org.apache.commons.lang3.ObjectUtils iwth API suggestion
                 Key: NIFI-14762
                 URL: https://issues.apache.org/jira/browse/NIFI-14762
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Daniel Stieglitz
            Assignee: Daniel Stieglitz


Per the org.apache.commons.lang3.ObjectUtils javadocs, 
[https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/ObjectUtils.html#defaultIfNull(T,T)]]
  the suggested replacement is to use 
{code:java}
getIfNull(Object, Object){code}
 

The places where it needs to be replaced are below

 
{code:java}
[WARNING] 
nifi-2.5.0/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/connector/Fr
ameworkServerConnectorFactory.java:[159,26] [deprecation] <T>defaultIfNull(T,T) 
in ObjectUtils has been deprecated
[WARNING] 
nifi-2.5.0/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/
standard/calcite/RecordResultSetOutputStreamCallback.java:[62,26] [deprecation] 
<T>defaultIfNull(T,T) in ObjectUtils has been deprecated
[WARNING] 
nifi-2.5.0/nifi-registry/nifi-registry-core/nifi-registry-jetty/src/main/java/org/apache/nifi/registry/jetty/connector/Ap
plicationServerConnectorFactory.java:[231,26] [deprecation] 
<T>defaultIfNull(T,T) in ObjectUtils has been deprecated
{code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to