From 9f2a518852bb62018294a61edc6b4dad1d6225a0 Mon Sep 17 00:00:00 2001 From: sumanth reddy bandi Date: Mon, 18 Mar 2024 16:02:29 -0400 Subject: [PATCH 1/6] Avoid NumberFormatException while trying to construct an Integer with @Value annotation --- .../src/main/java/com/ebay/ejmask/api/MaskingPattern.java | 6 ++++++ .../ejmask/spring/boot/autoconfig/EJMaskAutoConfig.java | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ejmask-api/src/main/java/com/ebay/ejmask/api/MaskingPattern.java b/ejmask-api/src/main/java/com/ebay/ejmask/api/MaskingPattern.java index 18e4092..a893438 100644 --- a/ejmask-api/src/main/java/com/ebay/ejmask/api/MaskingPattern.java +++ b/ejmask-api/src/main/java/com/ebay/ejmask/api/MaskingPattern.java @@ -109,4 +109,10 @@ public int hashCode() { public String toString() { return "order=" + this.order + ";pattern=" + this.pattern.pattern() + ";replacement=" + this.replacement; } + + public int getOrder() { return order; } + + public Pattern getPattern() { return pattern; } + + public String getReplacement() { return replacement; } } diff --git a/ejmask-spring/ejmask-spring-boot/src/main/java/com/ebay/ejmask/spring/boot/autoconfig/EJMaskAutoConfig.java b/ejmask-spring/ejmask-spring-boot/src/main/java/com/ebay/ejmask/spring/boot/autoconfig/EJMaskAutoConfig.java index 6b9ccc2..9b07028 100644 --- a/ejmask-spring/ejmask-spring-boot/src/main/java/com/ebay/ejmask/spring/boot/autoconfig/EJMaskAutoConfig.java +++ b/ejmask-spring/ejmask-spring-boot/src/main/java/com/ebay/ejmask/spring/boot/autoconfig/EJMaskAutoConfig.java @@ -40,11 +40,11 @@ @ConditionalOnProperty(prefix = "ejmask.", name = "autoconfig", havingValue = "enabled", matchIfMissing = true) public class EJMaskAutoConfig { - @Value("ejmask.processor.content-slicer.priority:50") + @Value("${ejmask.processor.content-slicer.priority:50}") int contentSlicerPriority; - @Value("ejmask.processor.content-slicer.max-size:10000") + @Value("${ejmask.processor.content-slicer.max-size:10000}") int contentSlicerMaxStringLimit; - @Value("ejmask.processor.content-slicer.new-size:4000") + @Value("${ejmask.processor.content-slicer.new-size:4000}") int contentSlicerNewSize; From 9801bb6ab475dd1b0e8819f5f264b1f54b588dcc Mon Sep 17 00:00:00 2001 From: sumanth reddy bandi Date: Mon, 18 Mar 2024 18:38:00 -0400 Subject: [PATCH 2/6] Removing getters as they are unrelated --- .../src/main/java/com/ebay/ejmask/api/MaskingPattern.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ejmask-api/src/main/java/com/ebay/ejmask/api/MaskingPattern.java b/ejmask-api/src/main/java/com/ebay/ejmask/api/MaskingPattern.java index a893438..18e4092 100644 --- a/ejmask-api/src/main/java/com/ebay/ejmask/api/MaskingPattern.java +++ b/ejmask-api/src/main/java/com/ebay/ejmask/api/MaskingPattern.java @@ -109,10 +109,4 @@ public int hashCode() { public String toString() { return "order=" + this.order + ";pattern=" + this.pattern.pattern() + ";replacement=" + this.replacement; } - - public int getOrder() { return order; } - - public Pattern getPattern() { return pattern; } - - public String getReplacement() { return replacement; } } From 65b5185a80edc927a052dd6ed1d479fc19220951 Mon Sep 17 00:00:00 2001 From: sumanth reddy bandi Date: Mon, 18 Mar 2024 19:50:40 -0400 Subject: [PATCH 3/6] pom version update --- README.md | 4 ++-- ejmask-api/pom.xml | 4 ++-- ejmask-bom/pom.xml | 4 ++-- ejmask-core/pom.xml | 4 ++-- ejmask-extensions/pom.xml | 4 ++-- ejmask-spring/ejmask-spring-autoconfig/pom.xml | 4 ++-- ejmask-spring/ejmask-spring-boot/pom.xml | 4 ++-- ejmask-spring/ejmask-spring-core/pom.xml | 4 ++-- ejmask-spring/pom.xml | 4 ++-- pom.xml | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 4a015a5..a5a6407 100644 --- a/README.md +++ b/README.md @@ -233,14 +233,14 @@ Alternatively you can pull it from the central Maven repositories: com.ebay.ejmask ejmask-bom - 1.0.1 + 1.0.2 ``` ### Using in your Gradle Project. ```groovy -compile group: 'com.ebay.ejmask', name: 'ejmask-bom', version: '1.0.1' +compile group: 'com.ebay.ejmask', name: 'ejmask-bom', version: '1.0.2' ``` ## Roadmap diff --git a/ejmask-api/pom.xml b/ejmask-api/pom.xml index d754351..417886a 100644 --- a/ejmask-api/pom.xml +++ b/ejmask-api/pom.xml @@ -3,7 +3,7 @@ com.ebay.ejmask ejmask-parent - 1.0.1 + 1.0.2 ejmask-api @@ -15,4 +15,4 @@ compile - \ No newline at end of file + diff --git a/ejmask-bom/pom.xml b/ejmask-bom/pom.xml index 63da6a9..07a0a03 100644 --- a/ejmask-bom/pom.xml +++ b/ejmask-bom/pom.xml @@ -3,7 +3,7 @@ com.ebay.ejmask ejmask-parent - 1.0.1 + 1.0.2 ../pom.xml @@ -49,4 +49,4 @@ - \ No newline at end of file + diff --git a/ejmask-core/pom.xml b/ejmask-core/pom.xml index b1d47c7..58805a7 100644 --- a/ejmask-core/pom.xml +++ b/ejmask-core/pom.xml @@ -3,7 +3,7 @@ com.ebay.ejmask ejmask-parent - 1.0.1 + 1.0.2 ejmask-core @@ -41,4 +41,4 @@ test - \ No newline at end of file + diff --git a/ejmask-extensions/pom.xml b/ejmask-extensions/pom.xml index e45089a..3acc040 100644 --- a/ejmask-extensions/pom.xml +++ b/ejmask-extensions/pom.xml @@ -3,7 +3,7 @@ com.ebay.ejmask ejmask-parent - 1.0.1 + 1.0.2 ejmask-extensions @@ -41,4 +41,4 @@ test - \ No newline at end of file + diff --git a/ejmask-spring/ejmask-spring-autoconfig/pom.xml b/ejmask-spring/ejmask-spring-autoconfig/pom.xml index 29320af..618f10c 100644 --- a/ejmask-spring/ejmask-spring-autoconfig/pom.xml +++ b/ejmask-spring/ejmask-spring-autoconfig/pom.xml @@ -3,7 +3,7 @@ com.ebay.ejmask ejmask-spring - 1.0.1 + 1.0.2 ejmask-spring-autoconfig @@ -29,4 +29,4 @@ spring-boot-starter - \ No newline at end of file + diff --git a/ejmask-spring/ejmask-spring-boot/pom.xml b/ejmask-spring/ejmask-spring-boot/pom.xml index f954f99..6cebed7 100644 --- a/ejmask-spring/ejmask-spring-boot/pom.xml +++ b/ejmask-spring/ejmask-spring-boot/pom.xml @@ -3,7 +3,7 @@ com.ebay.ejmask ejmask-spring - 1.0.1 + 1.0.2 ejmask-spring-boot @@ -50,4 +50,4 @@ test - \ No newline at end of file + diff --git a/ejmask-spring/ejmask-spring-core/pom.xml b/ejmask-spring/ejmask-spring-core/pom.xml index 139cf4a..812baa6 100644 --- a/ejmask-spring/ejmask-spring-core/pom.xml +++ b/ejmask-spring/ejmask-spring-core/pom.xml @@ -3,7 +3,7 @@ com.ebay.ejmask ejmask-spring - 1.0.1 + 1.0.2 ejmask-spring-core @@ -56,4 +56,4 @@ test - \ No newline at end of file + diff --git a/ejmask-spring/pom.xml b/ejmask-spring/pom.xml index 23d6d66..a8ceec4 100644 --- a/ejmask-spring/pom.xml +++ b/ejmask-spring/pom.xml @@ -3,7 +3,7 @@ com.ebay.ejmask ejmask-parent - 1.0.1 + 1.0.2 ejmask-spring @@ -27,4 +27,4 @@ - \ No newline at end of file + diff --git a/pom.xml b/pom.xml index 15a8e1c..0f635f1 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.ebay.ejmask ejmask-parent - 1.0.1 + 1.0.2 pom @@ -355,4 +355,4 @@ - \ No newline at end of file + From 337177129c302a805aa577abc4540d2cb2525590 Mon Sep 17 00:00:00 2001 From: sumanth reddy bandi Date: Tue, 19 Mar 2024 00:39:09 -0400 Subject: [PATCH 4/6] checking signed commit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a5a6407..060bcb9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ eJMask is a JVM-based masking library that provides an easy-to-use API for maski To get started with eJMask, you'll need to add the eJMask library to your project using your preferred build system, such as Maven or Gradle. -Here's an example of how to use eJMask in your code: +Here's an example of how to use eJMask in your code: ```java public class EJMaskExample { From baa1480a80090dd264d9d5c8b07d919bcb638d9c Mon Sep 17 00:00:00 2001 From: sumanth reddy bandi Date: Tue, 19 Mar 2024 01:38:41 -0400 Subject: [PATCH 5/6] checking signed commit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 060bcb9..261ed9b 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ A few use case we can use is to decode and encode the string before masking and/ #### Extensions - ContentSlicerPreProcessor -### LogProvider +### LogProvider In case if you need to override the default logging library with the one you choose, just implement `ILogProvider`. From 85a8cb6e68acab86d5070ae253153151ff4f0e85 Mon Sep 17 00:00:00 2001 From: sumanth reddy bandi Date: Tue, 19 Mar 2024 01:48:14 -0400 Subject: [PATCH 6/6] checking signed commit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 261ed9b..078deda 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ A few use case we can use is to decode and encode the string before masking and/ In case if you need to override the default logging library with the one you choose, just implement `ILogProvider`. ```java -LoggerUtil.register(new MyLogProvider()); +LoggerUtil.register(new MyLogProvider()); ``` ## Getting Started