From f5153b4b6005499bfc91c027926d7f6ec6cf670f Mon Sep 17 00:00:00 2001 From: vasilevivan Date: Sun, 8 Oct 2023 22:53:15 +0300 Subject: [PATCH] commit --- src/Main.java | 1 + src/constants/Constants.java | 1 - src/constants/ConstantsForValidation.java | 1 - src/constants/MenuConstants.java | 1 - src/decryption/Decryption.java | 1 - src/decryption/DecryptionByBruteForce.java | 1 - src/decryption/DecryptionByStatisticalAnalysis.java | 1 - src/encryption/Encryption.java | 1 - src/exception/IncorrectFileNameException.java | 1 - src/exception/SystemFileException.java | 1 - src/menu/Menu.java | 1 - src/texts/exampleText.txt | 2 +- src/texts/textENG.txt | 2 +- src/validation/FileValidator.java | 1 - src/validation/InputValidator.java | 1 - src/workingWithText/SourceText.java | 1 - "src/workingWithText/Write\320\241onvertedText.java" | 1 - 17 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/Main.java b/src/Main.java index c2eb2b5..aab2bc8 100644 --- a/src/Main.java +++ b/src/Main.java @@ -7,4 +7,5 @@ public static void main(String[] args) throws IOException { Menu menu = new Menu(); menu.openMenu(); } + } \ No newline at end of file diff --git a/src/constants/Constants.java b/src/constants/Constants.java index a65a930..34959e0 100644 --- a/src/constants/Constants.java +++ b/src/constants/Constants.java @@ -1,5 +1,4 @@ package constants; - public class Constants { /** * English alphabet, numbers and some symbols. diff --git a/src/constants/ConstantsForValidation.java b/src/constants/ConstantsForValidation.java index e18836f..db59f70 100644 --- a/src/constants/ConstantsForValidation.java +++ b/src/constants/ConstantsForValidation.java @@ -1,7 +1,6 @@ package constants; import java.util.List; - public class ConstantsForValidation { /** * Paths to system files and directories that cannot be overwritten. diff --git a/src/constants/MenuConstants.java b/src/constants/MenuConstants.java index 66aa827..70b5fea 100644 --- a/src/constants/MenuConstants.java +++ b/src/constants/MenuConstants.java @@ -1,5 +1,4 @@ package constants; - public class MenuConstants { public static final String MAIN_MENU = """ \nМеню программы "ШИФР ЦЕЗАРЯ": diff --git a/src/decryption/Decryption.java b/src/decryption/Decryption.java index 39fa111..de8e90a 100644 --- a/src/decryption/Decryption.java +++ b/src/decryption/Decryption.java @@ -1,5 +1,4 @@ package decryption; - import constants.Constants; import java.util.Arrays; import java.util.List; diff --git a/src/decryption/DecryptionByBruteForce.java b/src/decryption/DecryptionByBruteForce.java index 585cf8b..1ff53ae 100644 --- a/src/decryption/DecryptionByBruteForce.java +++ b/src/decryption/DecryptionByBruteForce.java @@ -1,5 +1,4 @@ package decryption; - import constants.Constants; import workingWithText.SourceText; import java.io.IOException; diff --git a/src/decryption/DecryptionByStatisticalAnalysis.java b/src/decryption/DecryptionByStatisticalAnalysis.java index 5f5b0c3..604507d 100644 --- a/src/decryption/DecryptionByStatisticalAnalysis.java +++ b/src/decryption/DecryptionByStatisticalAnalysis.java @@ -1,5 +1,4 @@ package decryption; - import constants.Constants; import workingWithText.SourceText; import java.io.IOException; diff --git a/src/encryption/Encryption.java b/src/encryption/Encryption.java index 6c10707..c3991ad 100644 --- a/src/encryption/Encryption.java +++ b/src/encryption/Encryption.java @@ -3,7 +3,6 @@ import constants.Constants; import java.util.Arrays; import java.util.List; - /** * The class that performs key encryption in the Caesar Cipher. */ diff --git a/src/exception/IncorrectFileNameException.java b/src/exception/IncorrectFileNameException.java index e5e2826..e76b7e1 100644 --- a/src/exception/IncorrectFileNameException.java +++ b/src/exception/IncorrectFileNameException.java @@ -1,5 +1,4 @@ package exception; - import java.io.IOException; /** * Signals that the file name is incorrect. diff --git a/src/exception/SystemFileException.java b/src/exception/SystemFileException.java index f96c2f4..7aba9c5 100644 --- a/src/exception/SystemFileException.java +++ b/src/exception/SystemFileException.java @@ -1,5 +1,4 @@ package exception; - import java.io.IOException; /** * Signals that the file name is system file diff --git a/src/menu/Menu.java b/src/menu/Menu.java index 88cea4e..c9cc3ff 100644 --- a/src/menu/Menu.java +++ b/src/menu/Menu.java @@ -1,5 +1,4 @@ package menu; - import decryption.Decryption; import decryption.DecryptionByBruteForce; import decryption.DecryptionByStatisticalAnalysis; diff --git a/src/texts/exampleText.txt b/src/texts/exampleText.txt index f8b9603..c079523 100644 --- a/src/texts/exampleText.txt +++ b/src/texts/exampleText.txt @@ -1,4 +1,4 @@ The sun was already slipping behind a snow-capped ridge when I drove into Koishaur Valley. The Ossetian coachman, singing at the top of his voice, tirelessly urged his horses on in order to reach the summit of Koishaur Mountain before nightfall. -What a glorious spot this valley is! +What A glorious spot this valley is! All around it tower awesome mountains, reddish crags draped with hanging ivy and crowned with clusters of plane trees, yellow cliffs grooved by torrents, with a gilded fringe of snow high above, while down below the Aragva River embraces a nameless stream that noisily bursts forth from a black, gloom-filled gorge and then stretches in a silvery ribbon into the distance, its surface shimmering like the scaly back of a snake. \ No newline at end of file diff --git a/src/texts/textENG.txt b/src/texts/textENG.txt index 3ab6d6a..09d7492 100644 --- a/src/texts/textENG.txt +++ b/src/texts/textENG.txt @@ -2,6 +2,6 @@ I can't remember a bluer or fresher morning. The sun had barely peeped over the The exultant rays of the new day hadn't yet penetrated into the gorge. Now they gilded only the tops of the crags that towered above us on both sides. The dense foliage of the bushes growing in the deep crevices of the cliffs showered a silvery rain upon us at the slightest breath of wind. I remember that at that moment I loved nature as never before. -With what curiosity did I gaze at each dewdrop that trembled on the broad vine leaves, reflecting millions of rainbow glints! +With what curiosity did I gaze at each dewdrop that trembled On the broad vine leaves, reflecting millions of rainbow glints! How eagerly my eyes sought to pierce the hazy distance! There the path grew narrower and narrower, the crags bluer and more awesome, seeming to merge at last into an impregnable wall. We rode along in silence. \ No newline at end of file diff --git a/src/validation/FileValidator.java b/src/validation/FileValidator.java index 9e02436..d771bf7 100644 --- a/src/validation/FileValidator.java +++ b/src/validation/FileValidator.java @@ -7,7 +7,6 @@ import java.nio.file.Path; import static constants.ConstantsForValidation.DIRECTORY_PATH_TO_FILES; - /** * The class that checks files */ diff --git a/src/validation/InputValidator.java b/src/validation/InputValidator.java index 9d7fe6d..6236d20 100644 --- a/src/validation/InputValidator.java +++ b/src/validation/InputValidator.java @@ -4,7 +4,6 @@ import java.util.Scanner; import static constants.ConstantsForValidation.CHOICE_AGAIN; import static constants.ConstantsForValidation.INVALID_VALUE; - /** * The class that validates input data */ diff --git a/src/workingWithText/SourceText.java b/src/workingWithText/SourceText.java index 0d9bf0b..cd40788 100644 --- a/src/workingWithText/SourceText.java +++ b/src/workingWithText/SourceText.java @@ -6,7 +6,6 @@ import java.nio.file.Path; import java.util.ArrayList; import java.util.List; - /** * The class that works with the source text */ diff --git "a/src/workingWithText/Write\320\241onvertedText.java" "b/src/workingWithText/Write\320\241onvertedText.java" index b250f6b..c996721 100644 --- "a/src/workingWithText/Write\320\241onvertedText.java" +++ "b/src/workingWithText/Write\320\241onvertedText.java" @@ -14,7 +14,6 @@ */ public class WriteСonvertedText { private FileValidator fileValidator = new FileValidator(); - /** * The method that writes text to a file *