langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/SourcePath.java
changeset 14366 af625e568667
parent 14357 faf9cde2817b
equal deleted inserted replaced
14365:20f388573215 14366:af625e568667
   108     }
   108     }
   109 
   109 
   110     /**
   110     /**
   111      * Find the specified directory in the source path.
   111      * Find the specified directory in the source path.
   112      *
   112      *
   113      * @param name Name of the directory to be searched for in the source path.
   113      * @param p Name of the directory to be searched for in the source path.
   114      * @return File Return the directory if found else return null.
   114      * @return File Return the directory if found else return null.
   115      */
   115      */
   116     public File getDirectory(DocPath p) {
   116     public File getDirectory(DocPath p) {
   117         for (int i = 0; i < sourcePath.length; i++) {
   117         for (int i = 0; i < sourcePath.length; i++) {
   118             File directoryNeeded = new File(sourcePath[i], p.getPath());
   118             File directoryNeeded = new File(sourcePath[i], p.getPath());