code: public static File getCanonicalFile(final File file) {
  
          // Check sanity
          Validate.notNull(file, "file");
  
          // All done
          try {
              return file.getCanonicalFile();
          } catch (IOException e) {
              throw new IllegalArgumentException("Could not acquire the canonical file for ["
                      + file.getAbsolutePath() + "]", e);
          }
      }
docs: Acquires the canonical File for the supplied file.
  
  @param file A non-null File for which the canonical File should be retrieved.
  @return The canonical File of the supplied file.