add some missing javadoc
Former-commit-id: a8573b79f9
Former-commit-id: 6a5d2476aa921b47e0f50fa837cbd778427ec28d
This commit is contained in:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user