aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/musichub/business/PathValidation.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/java/musichub/business/PathValidation.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/main/java/musichub/business/PathValidation.java b/src/main/java/musichub/business/PathValidation.java
index 97f8759..b0281ba 100644
--- a/src/main/java/musichub/business/PathValidation.java
+++ b/src/main/java/musichub/business/PathValidation.java
@@ -11,10 +11,21 @@ import java.nio.file.Paths;
* @version 1.0
*/
-public class PathValidation {
+public final class PathValidation {
/**
- * Methode that checks the validity of a given path
+ * Method that just throws an AssertionError if the class is called
+ *
+ * @throws AssertionError you can't instantiate this class
+ * @author Aimeric ADJUTOR
+ */
+
+ public PathValidation() {
+ throw new AssertionError("You just can't instantiate this class.");
+ }
+
+ /**
+ * Method that checks the validity of a given path
*
* @param inputPath the path given by the user
* @return a boolean
d4bc9c23faab&follow=1'>Big updaterelease/3.2Clyhtsuriva55-235/+193 Restructuring the packages and adding a Constants.kt for the api URL. Also adding gson in Singletons.kt 2021-05-19Update README.mdClyhtsuriva1-1/+5 2021-05-14Update README.mdClyhtsuriva1-1/+3 2021-05-14Update README.mdClyhtsuriva1-0/+23 2021-05-14Update README.md and adding logo onto the main screenrelease/3.1Clyhtsuriva2-10/+13 2021-05-14Singletons on all pages : OKClyhtsuriva6-125/+81 2021-05-14Singletons : DetailTopManga : OKClyhtsuriva2-21/+49 2021-05-14Addedd Singletons for TopManga.Clyhtsuriva3-23/+43