From 6895ee71a0308c7f109f246bd16fe541bf3c5377 Mon Sep 17 00:00:00 2001 From: zanninso Date: Thu, 18 Jul 2024 03:37:53 +0100 Subject: [PATCH] docs: fix typo and messing imports --- subjects/java/checkpoints/config-protector/ExerciseRunner.java | 3 ++- subjects/java/checkpoints/config-protector/README.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/subjects/java/checkpoints/config-protector/ExerciseRunner.java b/subjects/java/checkpoints/config-protector/ExerciseRunner.java index 525ab850c..fa3b84123 100644 --- a/subjects/java/checkpoints/config-protector/ExerciseRunner.java +++ b/subjects/java/checkpoints/config-protector/ExerciseRunner.java @@ -1,3 +1,4 @@ +import java.util.List; import java.util.Arrays; public class ExerciseRunner { @@ -19,4 +20,4 @@ public class ExerciseRunner { List sensitiveKeys3 = Arrays.asList("username", "password"); System.out.println("Protected Config 3:\n" + protector.hideSensitiveData(configFile3, sensitiveKeys3)); } -} \ No newline at end of file +} diff --git a/subjects/java/checkpoints/config-protector/README.md b/subjects/java/checkpoints/config-protector/README.md index a3bfce83c..baa7389ec 100644 --- a/subjects/java/checkpoints/config-protector/README.md +++ b/subjects/java/checkpoints/config-protector/README.md @@ -2,7 +2,7 @@ ### Instructions -Create a class `ConfigProtector` that provides a method to hide sensitive data in a configuration file using regex. The method should replace sensitive values with asterisks. The configuration file will be provided as a string, and the keys for the sensitive data will be given in a list. +Create a class `ConfigProtector` that provides a method to hide sensitive data in a configuration file using `Regex`. The method should replace sensitive values with asterisks. The configuration file will be provided as a string, and the keys for the sensitive data will be given in a list. ### Expected Class @@ -21,6 +21,7 @@ public class ConfigProtector { Here is a possible `ExerciseRunner.java` to test your class: ```java +import java.util.List; import java.util.Arrays; public class ExerciseRunner {