class FileSystem {

	@Pure
	public static File makeAbsolute(File filename, File current) {
		if (filename == null) {
			return null;
		}
		if (current != null && !filename.isAbsolute()) {
			try {
				return new File(current.getCanonicalFile(), filename.getPath());
			} catch (IOException exception) {
				return new File(current.getAbsoluteFile(), filename.getPath());
			}
		}
		return filename;
	}

	private  FileSystem();

}