From d84baac9b70831d1098000faacfe87061f8db0e4 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 2 Sep 2021 00:18:07 +0200 Subject: [PATCH] Moves the encryption classes to their own package --- .../bookswithoutborders/{ => encryption}/GenenCrypt.java | 2 +- .../{ => encryption}/SubstitutionCipher.java | 2 +- .../bookswithoutborders/utility/EncryptionHelper.java | 4 ++-- .../net/knarcraft/bookswithoutborders/GenenCryptTest.java | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) rename src/main/java/net/knarcraft/bookswithoutborders/{ => encryption}/GenenCrypt.java (99%) rename src/main/java/net/knarcraft/bookswithoutborders/{ => encryption}/SubstitutionCipher.java (98%) diff --git a/src/main/java/net/knarcraft/bookswithoutborders/GenenCrypt.java b/src/main/java/net/knarcraft/bookswithoutborders/encryption/GenenCrypt.java similarity index 99% rename from src/main/java/net/knarcraft/bookswithoutborders/GenenCrypt.java rename to src/main/java/net/knarcraft/bookswithoutborders/encryption/GenenCrypt.java index 716e84f..e245c1d 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/GenenCrypt.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/encryption/GenenCrypt.java @@ -1,4 +1,4 @@ -package net.knarcraft.bookswithoutborders; +package net.knarcraft.bookswithoutborders.encryption; import java.util.ArrayList; import java.util.HashMap; diff --git a/src/main/java/net/knarcraft/bookswithoutborders/SubstitutionCipher.java b/src/main/java/net/knarcraft/bookswithoutborders/encryption/SubstitutionCipher.java similarity index 98% rename from src/main/java/net/knarcraft/bookswithoutborders/SubstitutionCipher.java rename to src/main/java/net/knarcraft/bookswithoutborders/encryption/SubstitutionCipher.java index 89b653e..c937c20 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/SubstitutionCipher.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/encryption/SubstitutionCipher.java @@ -1,4 +1,4 @@ -package net.knarcraft.bookswithoutborders; +package net.knarcraft.bookswithoutborders.encryption; import java.math.BigInteger; import java.util.StringTokenizer; diff --git a/src/main/java/net/knarcraft/bookswithoutborders/utility/EncryptionHelper.java b/src/main/java/net/knarcraft/bookswithoutborders/utility/EncryptionHelper.java index 73d1bbd..c47415e 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/utility/EncryptionHelper.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/utility/EncryptionHelper.java @@ -1,8 +1,8 @@ package net.knarcraft.bookswithoutborders.utility; import net.knarcraft.bookswithoutborders.BooksWithoutBorders; -import net.knarcraft.bookswithoutborders.GenenCrypt; -import net.knarcraft.bookswithoutborders.SubstitutionCipher; +import net.knarcraft.bookswithoutborders.encryption.GenenCrypt; +import net.knarcraft.bookswithoutborders.encryption.SubstitutionCipher; import net.knarcraft.bookswithoutborders.state.EncryptionStyle; import org.bukkit.ChatColor; import org.bukkit.Material; diff --git a/src/test/java/net/knarcraft/bookswithoutborders/GenenCryptTest.java b/src/test/java/net/knarcraft/bookswithoutborders/GenenCryptTest.java index b7254e9..a43c575 100644 --- a/src/test/java/net/knarcraft/bookswithoutborders/GenenCryptTest.java +++ b/src/test/java/net/knarcraft/bookswithoutborders/GenenCryptTest.java @@ -1,5 +1,6 @@ package net.knarcraft.bookswithoutborders; +import net.knarcraft.bookswithoutborders.encryption.GenenCrypt; import org.junit.Test; import static org.junit.Assert.assertEquals;