You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2022/11/16 14:50:48 UTC

[cayenne] 01/06: fix typo

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

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git

commit 11a54e9493dff0133110eaf5aada062910c45cd1
Author: Mikhail Dzianishchyts <mi...@gmail.com>
AuthorDate: Wed Nov 16 09:23:08 2022 +0300

    fix typo
---
 .../main/java/org/apache/cayenne/crypto/CryptoModuleExtender.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleExtender.java b/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleExtender.java
index 23279e19c..b3720e680 100644
--- a/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleExtender.java
+++ b/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleExtender.java
@@ -52,7 +52,7 @@ public class CryptoModuleExtender {
     private ColumnMapper columnMapper;
     private Class<? extends ColumnMapper> columnMapperType;
 
-    private String cipherAlgoritm;
+    private String cipherAlgorithm;
     private String cipherMode;
     private Class<? extends CipherFactory> cipherFactoryType;
 
@@ -75,7 +75,7 @@ public class CryptoModuleExtender {
     }
 
     public CryptoModuleExtender cipherAlgorithm(String algorithm) {
-        this.cipherAlgoritm = Objects.requireNonNull(algorithm);
+        this.cipherAlgorithm = Objects.requireNonNull(algorithm);
         return this;
     }
 
@@ -230,8 +230,8 @@ public class CryptoModuleExtender {
 
             MapBuilder<String> props = CryptoModule.contributeProperties(binder);
 
-            if (cipherAlgoritm != null) {
-                props.put(CryptoConstants.CIPHER_ALGORITHM, cipherAlgoritm);
+            if (cipherAlgorithm != null) {
+                props.put(CryptoConstants.CIPHER_ALGORITHM, cipherAlgorithm);
             }
 
             if (cipherMode != null) {