add some missing javadoc

Former-commit-id: a8573b79f9
Former-commit-id: 6a5d2476aa921b47e0f50fa837cbd778427ec28d
This commit is contained in:
idk
2022-08-22 00:47:40 -04:00
parent 9f6e77aff2
commit e237b627f3
6 changed files with 70 additions and 23 deletions

View File

@ -32,7 +32,14 @@ public class I2PFirefoxProfileChecker {
} else {
System.out.println("Profile directory is invalid");
}
}
}
/*
* Return true if the profile directory is valid.
*
* @param profileDirectory the profile directory to check
* @return true if the profile directory is valid, false otherwise
* @since 0.0.1
*/
public static boolean validateProfileDirectory(String profileDirectory) {
File profileDir = new File(profileDirectory);
if (!profileDir.exists()) {
@ -65,6 +72,13 @@ public class I2PFirefoxProfileChecker {
}
return true;
}
/*
* Return true if the file is valid.
*
* @param file the file to check
* @return true if the file is valid, false otherwise
* @since 0.0.1
*/
public static boolean validateFile(String file) {
File f = new File(file);
if (!f.exists()) {
@ -85,6 +99,13 @@ public class I2PFirefoxProfileChecker {
}
return true;
}
/*
* Return true if the extension directory is valid.
*
* @param extensionDirectory the extension directory to check
* @return true if the extension directory is valid, false otherwise
* @since 0.0.1
*/
public static boolean validateExtensionDirectory(String extensionDirectory) {
File extensionDir = new File(extensionDirectory);
if (!extensionDir.exists()) {