/** * Converts the given Package name to it's corresponding Path. The path will be a relative path. * * @param packageName the package name to convert * @return a String containing the resulting patch */ @Override public final String packageToPath(final String packageName) { if (packageName == null) { return packageName; } if (!isValidPackageName(packageName)) { String message = "Package name: " + packageName + " is not valid"; throw new IllegalArgumentException(message); } return packageName.replace('.', File.separatorChar); }