This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/support/nifi-1.x by this push:
     new 9749dc0034 NIFI-11360 Switched Optional.isEmpty to Optional.isPresent 
for Java 8
9749dc0034 is described below

commit 9749dc0034dbd019440be06f7d85e1edd8f4cf11
Author: exceptionfactory <[email protected]>
AuthorDate: Tue May 2 22:38:53 2023 -0500

    NIFI-11360 Switched Optional.isEmpty to Optional.isPresent for Java 8
    
    Signed-off-by: David Handermann <[email protected]>
---
 .../org/apache/nifi/processors/azure/ClientSideEncryptionSupport.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/ClientSideEncryptionSupport.java
 
b/nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/ClientSideEncryptionSupport.java
index af3c90e3ce..0d0789882f 100644
--- 
a/nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/ClientSideEncryptionSupport.java
+++ 
b/nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/ClientSideEncryptionSupport.java
@@ -99,7 +99,7 @@ public interface ClientSideEncryptionSupport {
         } else {
             try {
                 final byte[] keyBytes = Hex.decodeHex(keyHex);
-                if (getKeyWrapAlgorithm(keyBytes).isEmpty()) {
+                if (!getKeyWrapAlgorithm(keyBytes).isPresent()) {
                     validationResults.add(new 
ValidationResult.Builder().subject(CSE_LOCAL_KEY.getDisplayName())
                             .explanation(String.format("Key size in bits must 
be one of [128, 192, 256, 384, 512] instead of [%d]", keyBytes.length * 
8)).build());
                 }

Reply via email to